add status height

hmxc
小赖 4 years ago
parent 6459435a95
commit 1178ef70e9

@ -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<HomePage> {
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,

@ -0,0 +1,3 @@
import 'package:flutter_screenutil/flutter_screenutil.dart';
double get statusBarHeight => ScreenUtil().statusBarHeight;
Loading…
Cancel
Save