Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

flutter lock screen to portrait mode


void main() {
// flutter lock screen to portrait mode
  WidgetsFlutterBinding.ensureInitialized();
  SystemChrome.setPreferredOrientations([
    DeviceOrientation.portraitUp,
    DeviceOrientation.portraitDown,
  ]);
  runApp(MyBudgetApp());
}
 
PREVIOUS NEXT
Tagged: #flutter #lock #screen #portrait #mode
ADD COMMENT
Topic
Name
9+3 =