Экран блокировки Flutter в портретный режим
void main() {
// flutter lock screen to portrait mode
WidgetsFlutterBinding.ensureInitialized();
SystemChrome.setPreferredOrientations([
DeviceOrientation.portraitUp,
DeviceOrientation.portraitDown,
]);
runApp(MyBudgetApp());
}
Manga301