Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

flutter lock orientation

@override
void initState(){
  super.initState();
  SystemChrome.setPreferredOrientations([
      DeviceOrientation.landscapeRight,
      DeviceOrientation.landscapeLeft,
  ]);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #flutter #lock #orientation
ADD COMMENT
Topic
Name
8+7 =