x1ongzhu 6 роки тому
батько
коміт
7d0a0c42ef
1 змінених файлів з 1 додано та 0 видалено
  1. 1 0
      lib/main.dart

+ 1 - 0
lib/main.dart

@@ -59,6 +59,7 @@ void main() async {
   SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle.light.copyWith(
   SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle.light.copyWith(
     statusBarColor: Colors.transparent,
     statusBarColor: Colors.transparent,
   ));
   ));
+  await SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp]);
   final prefs = await SharedPreferences.getInstance();
   final prefs = await SharedPreferences.getInstance();
   print(prefs.getString('token'));
   print(prefs.getString('token'));
   //测试token
   //测试token