// This will works always for lock screen Orientation.
void main() {
WidgetsFlutterBinding.ensureInitialized();
SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp])
.then((_) {
runApp(new MyApp());
});
}
'프로그래밍 > Flutter' 카테고리의 다른 글
[Flutter] 난독화 (0) | 2022.04.28 |
---|---|
[Flutter] Screen, StatusBar Size (0) | 2022.04.27 |
[Flutter] 카카오 로그인 설정 (0) | 2022.04.23 |
[Flutter] StatusBar Color (0) | 2022.04.21 |
[Flutter] ExpandablePageView initial page (0) | 2022.04.18 |
댓글