Showing
1 changed file
with
6 additions
and
6 deletions
@@ -74,12 +74,12 @@ ScreenUtil.init(context, designSize: Size(750, 1334), allowFontScaling: true); | @@ -74,12 +74,12 @@ ScreenUtil.init(context, designSize: Size(750, 1334), allowFontScaling: true); | ||
74 | ScreenUtil().setSp(24, allowFontScalingSelf: true) (sdk>=2.6 : 24.ssp) //Adapter font(fonts will scale to respect Text Size accessibility settings) | 74 | ScreenUtil().setSp(24, allowFontScalingSelf: true) (sdk>=2.6 : 24.ssp) //Adapter font(fonts will scale to respect Text Size accessibility settings) |
75 | ScreenUtil().setSp(24, allowFontScalingSelf: false) (sdk>=2.6 : 24.nsp) //Adapter font(fonts will not scale to respect Text Size accessibility settings) | 75 | ScreenUtil().setSp(24, allowFontScalingSelf: false) (sdk>=2.6 : 24.nsp) //Adapter font(fonts will not scale to respect Text Size accessibility settings) |
76 | 76 | ||
77 | - ScreenUtil.pixelRatio //Device pixel density | ||
78 | - ScreenUtil.screenWidth (sdk>=2.6 : 1.sw) //Device width | ||
79 | - ScreenUtil.screenHeight (sdk>=2.6 : 1.sh) //Device height | ||
80 | - ScreenUtil.bottomBarHeight //Bottom safe zone distance, suitable for buttons with full screen | ||
81 | - ScreenUtil.statusBarHeight //Status bar height , Notch will be higher Unit px | ||
82 | - ScreenUtil.textScaleFactor //System font scaling factor | 77 | + ScreenUtil().pixelRatio //Device pixel density |
78 | + ScreenUtil().screenWidth (sdk>=2.6 : 1.sw) //Device width | ||
79 | + ScreenUtil().screenHeight (sdk>=2.6 : 1.sh) //Device height | ||
80 | + ScreenUtil().bottomBarHeight //Bottom safe zone distance, suitable for buttons with full screen | ||
81 | + ScreenUtil().statusBarHeight //Status bar height , Notch will be higher Unit px | ||
82 | + ScreenUtil().textScaleFactor //System font scaling factor | ||
83 | 83 | ||
84 | ScreenUtil().scaleWidth //Ratio of actual width dp to design draft px | 84 | ScreenUtil().scaleWidth //Ratio of actual width dp to design draft px |
85 | ScreenUtil().scaleHeight //Ratio of actual height dp to design draft px | 85 | ScreenUtil().scaleHeight //Ratio of actual height dp to design draft px |
-
Please register or login to post a comment