Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

restrick platform orientation flutter

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