Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
flutter_screenutil
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
LiZhuoyuan
2019-02-21 15:01:19 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Committed by
GitHub
2019-02-21 15:01:19 +0800
Commit
a2e4662e700b4d71e03b731dfdd09c72af14d4c3
a2e4662e
1 parent
2c0600a8
Update README_CN.md
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
README_CN.md
README_CN.md
View file @
a2e4662
...
...
@@ -66,9 +66,11 @@ ScreenUtil.instance = ScreenUtil(width: 750, height: 1334, allowFontScaling: tru
传入设计稿的px尺寸:
根据屏幕宽度适配
width: ScreenUtil().setWidth(540)
,
根据屏幕宽度适配
`width: ScreenUtil().setWidth(540)`
,
根据屏幕高度适配 height: ScreenUtil().setHeight(200),
根据屏幕高度适配
`height: ScreenUtil().setHeight(200)`
,
也可以使用
`ScreenUtil.getInstance()` 来替代`ScreenUtil()` , 例如:`ScreenUtil.getInstance().setHeight(25)`
**注意**
...
...
Please
register
or
login
to post a comment