From 2fe7dc814e59ec18242aec629a356d697aca7742 Mon Sep 17 00:00:00 2001 From: "1147192855@qq.com" <1147192855@qq.com> Date: Tue, 25 Jun 2024 10:24:00 +0800 Subject: [PATCH] no message --- making_school_asignment_app/lib/main.dart | 5 ++++- .../lib/page/home_page/home_view.dart | 1 + .../lib/page/work_page/work_view.dart | 12 +++++++++--- 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/making_school_asignment_app/lib/main.dart b/making_school_asignment_app/lib/main.dart index 5adb533..968ffd2 100644 --- a/making_school_asignment_app/lib/main.dart +++ b/making_school_asignment_app/lib/main.dart @@ -20,7 +20,10 @@ void main() async { /// 初始化UserStore Get.put(UserStore().init()); - + SystemChrome.setSystemUIOverlayStyle(const SystemUiOverlayStyle( + statusBarColor: Colors.transparent, //状态栏背景颜色 + statusBarIconBrightness: Brightness.dark // dark:一般显示黑色 light:一般显示白色 + )); SystemChrome.setEnabledSystemUIMode(SystemUiMode.manual, overlays: [SystemUiOverlay.top, SystemUiOverlay.bottom]); // 屏幕刘海 SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp]); // 屏幕强制竖屏 WidgetsFlutterBinding.ensureInitialized(); diff --git a/making_school_asignment_app/lib/page/home_page/home_view.dart b/making_school_asignment_app/lib/page/home_page/home_view.dart index 31eb696..532eb4a 100644 --- a/making_school_asignment_app/lib/page/home_page/home_view.dart +++ b/making_school_asignment_app/lib/page/home_page/home_view.dart @@ -74,6 +74,7 @@ class _HomePageState extends State with AutomaticKeepAliveClientMixin ), ), ),*/ + SizedBox(height: MediaQuery.of(context).padding.top / 2), Obx(() { return $TermRow([ EntranceModel(title: '作业批阅', image: 'assets/images/job_home_marking.png', navigationUrl: Routes.readOverPage), diff --git a/making_school_asignment_app/lib/page/work_page/work_view.dart b/making_school_asignment_app/lib/page/work_page/work_view.dart index 2f8b126..4d0b7b9 100644 --- a/making_school_asignment_app/lib/page/work_page/work_view.dart +++ b/making_school_asignment_app/lib/page/work_page/work_view.dart @@ -29,6 +29,7 @@ class _WorkPageState extends State with AutomaticKeepAliveClientMixin @override Widget build(BuildContext context) { + super.build(context); return AnnotatedRegion( value: const SystemUiOverlayStyle( systemNavigationBarColor: Color(0xFF000000), @@ -147,9 +148,14 @@ class _WorkPageState extends State with AutomaticKeepAliveClientMixin ], ), ), - Expanded(child: Obx(() { - return AnnotateList(tabIndex: state.tabIndex.value,assessType: 1,); - }),), + Expanded( + child: Obx(() { + return AnnotateList( + tabIndex: state.tabIndex.value, + assessType: 1, + ); + }), + ), ], ); },