diff --git a/lib/ui/home/home_page.dart b/lib/ui/home/home_page.dart index 8ceffd6..698a56b 100644 --- a/lib/ui/home/home_page.dart +++ b/lib/ui/home/home_page.dart @@ -1,4 +1,5 @@ import 'package:aku_community_manager/style/app_style.dart'; +import 'package:aku_community_manager/utils/screen_tool.dart'; import 'package:aku_ui/aku_ui.dart'; import 'package:aku_ui/common_widgets/aku_material_button.dart'; import 'package:flutter/material.dart'; @@ -20,7 +21,7 @@ class _HomePageState extends State { return Scaffold( appBar: PreferredSize( - preferredSize: Size(375.w, 430.w - 40.w + ScreenUtil().statusBarHeight), + preferredSize: Size(375.w, 430.w - 40.w + statusBarHeight), child: Container( height: 430.w - 40.w + ScreenUtil().statusBarHeight, width: double.infinity, diff --git a/lib/utils/screen_tool.dart b/lib/utils/screen_tool.dart new file mode 100644 index 0000000..a2f3910 --- /dev/null +++ b/lib/utils/screen_tool.dart @@ -0,0 +1,3 @@ +import 'package:flutter_screenutil/flutter_screenutil.dart'; + +double get statusBarHeight => ScreenUtil().statusBarHeight;