Open1
Flutter tips

画面の向きを固定する方法
例: 縦に固定
SystemChrome.setPreferredOrientations([
DeviceOrientation.portraitUp,
]).then((_) {
runApp(const MyApp());
});
画面の向きを固定する方法
例: 縦に固定
SystemChrome.setPreferredOrientations([
DeviceOrientation.portraitUp,
]).then((_) {
runApp(const MyApp());
});