x1ongzhu 7 年之前
父节点
当前提交
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(
     statusBarColor: Colors.transparent,
   ));
+  await SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp]);
   final prefs = await SharedPreferences.getInstance();
   print(prefs.getString('token'));
   //测试token