how to lock flutter app screen in portrait mode code example
Example: flutter lock screen to portrait mode
void main() {
// flutter lock screen to portrait mode
WidgetsFlutterBinding.ensureInitialized();
SystemChrome.setPreferredOrientations([
DeviceOrientation.portraitUp,
DeviceOrientation.portraitDown,
]);
runApp(MyBudgetApp());
}