李卓原

fix #312

... ... @@ -63,11 +63,13 @@ class ScreenUtil {
/// 当前设备宽度 dp
/// The horizontal extent of this size.
double get screenWidth => _screenWidth;
double get screenWidth =>
context == null ? _screenWidth : MediaQuery.of(context!).size.width;
///当前设备高度 dp
///The vertical extent of this size. dp
double get screenHeight => _screenHeight;
double get screenHeight =>
context == null ? _screenHeight : MediaQuery.of(context!).size.height;
/// 状态栏高度 dp 刘海屏会更高
/// The offset from the top, in dp
... ...