Answers for "how to log rotate screen on device 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 log rotate screen on device flutter"

Browse Popular Code Answers by Language