Skip to content

Commit 9a9148e

Browse files
authored
Update README_CN.md
1 parent 47933b5 commit 9a9148e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README_CN.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,12 @@ ScreenUtil.init(context, designSize: Size(750, 1334), allowFontScaling: true);
7878
ScreenUtil().setSp(24, allowFontScalingSelf: true) (sdk>=2.6 : 24.ssp) //适配字体(根据系统的“字体大小”辅助选项来进行缩放)
7979
ScreenUtil().setSp(24, allowFontScalingSelf: false) (sdk>=2.6 : 24.nsp) //适配字体(不会根据系统的“字体大小”辅助选项来进行缩放)
8080
81-
ScreenUtil.pixelRatio //设备的像素密度
82-
ScreenUtil.screenWidth (sdk>=2.6 : 1.sw) //设备宽度
83-
ScreenUtil.screenHeight (sdk>=2.6 : 1.sh) //设备高度
84-
ScreenUtil.bottomBarHeight //底部安全区距离,适用于全面屏下面有按键的
85-
ScreenUtil.statusBarHeight //状态栏高度 刘海屏会更高 单位dp
86-
ScreenUtil.textScaleFactor //系统字体缩放比例
81+
ScreenUtil().pixelRatio //设备的像素密度
82+
ScreenUtil().screenWidth (sdk>=2.6 : 1.sw) //设备宽度
83+
ScreenUtil().screenHeight (sdk>=2.6 : 1.sh) //设备高度
84+
ScreenUtil().bottomBarHeight //底部安全区距离,适用于全面屏下面有按键的
85+
ScreenUtil().statusBarHeight //状态栏高度 刘海屏会更高 单位dp
86+
ScreenUtil().textScaleFactor //系统字体缩放比例
8787
8888
ScreenUtil().scaleWidth // 实际宽度的dp与设计稿px的比例
8989
ScreenUtil().scaleHeight // 实际高度的dp与设计稿px的比例

0 commit comments

Comments
 (0)