Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

flutter lock orientation for page

@override
dispose(){
  SystemChrome.setPreferredOrientations([
    DeviceOrientation.landscapeRight,
    DeviceOrientation.landscapeLeft,
    DeviceOrientation.portraitUp,
    DeviceOrientation.portraitDown,
  ]);
  super.dispose();
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #flutter #lock #orientation #page
ADD COMMENT
Topic
Name
9+6 =