You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ScreenUtil().setWidth(540) (dart sdk>=2.6 : 540.w) //Adapted to screen width
81
81
ScreenUtil().setHeight(200) (dart sdk>=2.6 : 200.h) //Adapted to screen height , under normal circumstances, the height still uses x.w
82
+
ScreenUtil().radius(200) (dart sdk>=2.6 : 200.r) //Adapt according to the smaller of width or height
82
83
ScreenUtil().setSp(24) (dart sdk>=2.6 : 24.sp) //Adapter font
83
84
ScreenUtil().setSp(24, allowFontScalingSelf: true) (dart sdk>=2.6 : 24.ssp) //Adapter font(fonts will scale to respect Text Size accessibility settings)
84
85
ScreenUtil().setSp(24, allowFontScalingSelf: false) (dart sdk>=2.6 : 24.nsp) //Adapter font(fonts will not scale to respect Text Size accessibility settings)
ScreenUtil().setWidth(540) (sdk>=2.6 : 540.w) //Adapted to screen width
81
81
ScreenUtil().setHeight(200) (sdk>=2.6 : 200.h) //Adapted to screen height
82
+
ScreenUtil().radius(200) (dart sdk>=2.6 : 200.r) //Adapt according to the smaller of width or height
82
83
ScreenUtil().setSp(24) (sdk>=2.6 : 24.sp) //Adapter font
83
84
ScreenUtil().setSp(24, allowFontScalingSelf: true) (sdk>=2.6 : 24.ssp) //Adapter font(fonts will scale to respect Text Size accessibility settings)
84
85
ScreenUtil().setSp(24, allowFontScalingSelf: false) (sdk>=2.6 : 24.nsp) //Adapter font(fonts will not scale to respect Text Size accessibility settings)
ScreenUtil.bottomBarHeight //Bottom safe zone distance, suitable for buttons with full screen
90
-
ScreenUtil.statusBarHeight //Status bar height , Notch will be higher Unit px
91
+
ScreenUtil.statusBarHeight //Status bar height , Notch will be higher
91
92
ScreenUtil.textScaleFactor //System font scaling factor
92
93
93
-
ScreenUtil().scaleWidth //Ratio of actual width dp to design draft px
94
-
ScreenUtil().scaleHeight //Ratio of actual height dp to design draft px
94
+
ScreenUtil().scaleWidth //The ratio of actual width to UI design
95
+
ScreenUtil().scaleHeight //The ratio of actual height to UI design
95
96
96
97
0.2.sw //0,2 vezes a largura da tela
97
98
0.5.sh //50% altura da tela
@@ -129,19 +130,21 @@ Altura também é adaptada de acordo com o setWidth para garantir que não tenha
129
130
130
131
O método setHeight é a principal forma de adaptar a altura, se quiser controlar a altura e a realidade de uma tela na UiUsed quando a mesma for exibida.
0 commit comments