Answers for "how to keep app in landscape mode in flutter"

1

flutter lock orientation

@override
void initState(){
  super.initState();
  SystemChrome.setPreferredOrientations([
      DeviceOrientation.landscapeRight,
      DeviceOrientation.landscapeLeft,
  ]);
}
Posted by: Guest on August-07-2020

Code answers related to "how to keep app in landscape mode in flutter"

Browse Popular Code Answers by Language