4

I'm writing Widget tests in Flutter and need to be able to test my layouts on different device sizes.

The headless device size is always 600 height and 800 width. I want to be able to specify the size in my test. Some of the UI logic is dependant on device size and can't be tested unless I can set this size.

MisterJimson
  • 480
  • 4
  • 5
  • 1
    Maybe the question [how to make media.orientation to portrait?](https://stackoverflow.com/questions/50158364/in-flutter-widget-testing-how-to-make-media-orientation-to-portrait) can help you. The question is slightly different, but the answer is relevant. Though I realise this is not a complete answer. – Benno Richters Dec 03 '18 at 20:43

0 Answers0