From 717dc1ada66bd7935546339d64683b9273cba7ba Mon Sep 17 00:00:00 2001 From: LiZhuoyuan Date: Wed, 28 Oct 2020 14:04:08 +0800 Subject: [PATCH 1/5] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a925738..291cca1 100644 --- a/README.md +++ b/README.md @@ -79,7 +79,7 @@ ScreenUtil.init(context, designSize: Size(750, 1334), allowFontScaling: true); ScreenUtil().screenWidth (sdk>=2.6 : 1.sw) //Device width ScreenUtil().screenHeight (sdk>=2.6 : 1.sh) //Device height ScreenUtil().bottomBarHeight //Bottom safe zone distance, suitable for buttons with full screen - ScreenUtil().statusBarHeight //Status bar height , Notch will be higher Unit px + ScreenUtil().statusBarHeight //Status bar height , Notch will be higher Unit dp ScreenUtil().textScaleFactor //System font scaling factor ScreenUtil().scaleWidth //Ratio of actual width dp to design draft px From 47933b5e4a7e7de0e7353264244b4eba1b238e0a Mon Sep 17 00:00:00 2001 From: LiZhuoyuan Date: Wed, 28 Oct 2020 14:04:36 +0800 Subject: [PATCH 2/5] Update README_CN.md --- README_CN.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README_CN.md b/README_CN.md index 535435a..6d014aa 100644 --- a/README_CN.md +++ b/README_CN.md @@ -82,7 +82,7 @@ ScreenUtil.init(context, designSize: Size(750, 1334), allowFontScaling: true); ScreenUtil.screenWidth (sdk>=2.6 : 1.sw) //设备宽度 ScreenUtil.screenHeight (sdk>=2.6 : 1.sh) //设备高度 ScreenUtil.bottomBarHeight //底部安全区距离,适用于全面屏下面有按键的 - ScreenUtil.statusBarHeight //状态栏高度 刘海屏会更高 单位px + ScreenUtil.statusBarHeight //状态栏高度 刘海屏会更高 单位dp ScreenUtil.textScaleFactor //系统字体缩放比例 ScreenUtil().scaleWidth // 实际宽度的dp与设计稿px的比例 From 9a9148ef387efd344eaf7938c74a38dd8ff1fabe Mon Sep 17 00:00:00 2001 From: LiZhuoyuan Date: Wed, 28 Oct 2020 14:06:51 +0800 Subject: [PATCH 3/5] Update README_CN.md --- README_CN.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README_CN.md b/README_CN.md index 6d014aa..c542f6a 100644 --- a/README_CN.md +++ b/README_CN.md @@ -78,12 +78,12 @@ ScreenUtil.init(context, designSize: Size(750, 1334), allowFontScaling: true); ScreenUtil().setSp(24, allowFontScalingSelf: true) (sdk>=2.6 : 24.ssp) //适配字体(根据系统的“字体大小”辅助选项来进行缩放) ScreenUtil().setSp(24, allowFontScalingSelf: false) (sdk>=2.6 : 24.nsp) //适配字体(不会根据系统的“字体大小”辅助选项来进行缩放) - ScreenUtil.pixelRatio //设备的像素密度 - ScreenUtil.screenWidth (sdk>=2.6 : 1.sw) //设备宽度 - ScreenUtil.screenHeight (sdk>=2.6 : 1.sh) //设备高度 - ScreenUtil.bottomBarHeight //底部安全区距离,适用于全面屏下面有按键的 - ScreenUtil.statusBarHeight //状态栏高度 刘海屏会更高 单位dp - ScreenUtil.textScaleFactor //系统字体缩放比例 + ScreenUtil().pixelRatio //设备的像素密度 + ScreenUtil().screenWidth (sdk>=2.6 : 1.sw) //设备宽度 + ScreenUtil().screenHeight (sdk>=2.6 : 1.sh) //设备高度 + ScreenUtil().bottomBarHeight //底部安全区距离,适用于全面屏下面有按键的 + ScreenUtil().statusBarHeight //状态栏高度 刘海屏会更高 单位dp + ScreenUtil().textScaleFactor //系统字体缩放比例 ScreenUtil().scaleWidth // 实际宽度的dp与设计稿px的比例 ScreenUtil().scaleHeight // 实际高度的dp与设计稿px的比例 From c712055acea100871873aedb2263679afc5eda15 Mon Sep 17 00:00:00 2001 From: LiZhuoyuan Date: Wed, 28 Oct 2020 14:10:36 +0800 Subject: [PATCH 4/5] Update README_PT.md --- README_PT.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README_PT.md b/README_PT.md index 5bdd4e5..9276278 100644 --- a/README_PT.md +++ b/README_PT.md @@ -74,12 +74,12 @@ ScreenUtil.init(context, designSize: Size(750, 1334), allowFontScaling: true); ScreenUtil().setSp(24, allowFontScalingSelf: true) (sdk>=2.6 : 24.ssp) //Adapter font(fonts will scale to respect Text Size accessibility settings) ScreenUtil().setSp(24, allowFontScalingSelf: false) (sdk>=2.6 : 24.nsp) //Adapter font(fonts will not scale to respect Text Size accessibility settings) - ScreenUtil.pixelRatio //Device pixel density - ScreenUtil.screenWidth (sdk>=2.6 : 1.sw) //Device width - ScreenUtil.screenHeight (sdk>=2.6 : 1.sh) //Device height - ScreenUtil.bottomBarHeight //Bottom safe zone distance, suitable for buttons with full screen - ScreenUtil.statusBarHeight //Status bar height , Notch will be higher Unit px - ScreenUtil.textScaleFactor //System font scaling factor + ScreenUtil().pixelRatio //Device pixel density + ScreenUtil().screenWidth (sdk>=2.6 : 1.sw) //Device width + ScreenUtil().screenHeight (sdk>=2.6 : 1.sh) //Device height + ScreenUtil().bottomBarHeight //Bottom safe zone distance, suitable for buttons with full screen + ScreenUtil().statusBarHeight //Status bar height , Notch will be higher Unit px + ScreenUtil().textScaleFactor //System font scaling factor ScreenUtil().scaleWidth //Ratio of actual width dp to design draft px ScreenUtil().scaleHeight //Ratio of actual height dp to design draft px From de09650f034164c1397678ca87482369bfb17307 Mon Sep 17 00:00:00 2001 From: LiZhuoyuan Date: Thu, 5 Nov 2020 17:33:12 +0800 Subject: [PATCH 5/5] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 291cca1..ebed9f5 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ dependencies: flutter: sdk: flutter # add flutter_screenutil - flutter_screenutil: ^3.1.0 + flutter_screenutil: ^3.2.0 ``` ### Add the following imports to your Dart code: ```