Showing
1 changed file
with
1 additions
and
1 deletions
@@ -69,7 +69,7 @@ ScreenUtil.init(width: 750, height: 1334, allowFontScaling: true); / | @@ -69,7 +69,7 @@ ScreenUtil.init(width: 750, height: 1334, allowFontScaling: true); / | ||
69 | ### 使用 | 69 | ### 使用 |
70 | 70 | ||
71 | ### API | 71 | ### API |
72 | - | 72 | +#### 传入设计稿的px尺寸 px px px ! |
73 | ```dart | 73 | ```dart |
74 | ScreenUtil().setWidth(540) (sdk>=2.6 : 540.w) //根据屏幕宽度适配尺寸 | 74 | ScreenUtil().setWidth(540) (sdk>=2.6 : 540.w) //根据屏幕宽度适配尺寸 |
75 | ScreenUtil().setHeight(200) (sdk>=2.6 : 200.h) //根据屏幕高度适配尺寸 | 75 | ScreenUtil().setHeight(200) (sdk>=2.6 : 200.h) //根据屏幕高度适配尺寸 |
-
Please register or login to post a comment