Home > other >  Flutter Driver: How to check device orientation?
Flutter Driver: How to check device orientation?

Time:09-03

How can I check the device orientation inside a flutter integration test within a flutter driver test?

SystemChrome.setPreferredOrientations

IS NOT AVAILABLE IN FLUTTER TEST!!! See: enter image description here

enter image description here

enter image description here

CodePudding user response:

SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp]);

  • Related