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:02:35 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Committed by
GitHub
2019-02-21 15:02:35 +0800
Commit
96a2a8aa441af8ab1b272130d396f4e4aa8ae014
96a2a8aa
1 parent
a2e4662e
Update README.md
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
README.md
README.md
View file @
96a2a8a
...
...
@@ -62,9 +62,11 @@ ScreenUtil.instance = ScreenUtil(width: 750, height: 1334, allowFontScaling: tru
Pass the px size of the design draft:
Adapted to screen width:
ScreenUtil().setWidth(540)
,
Adapted to screen width:
`ScreenUtil().setWidth(540)`
,
Adapted to screen height: ScreenUtil().setHeight(200),
Adapted to screen height:
`ScreenUtil().setHeight(200)`
,
You can also use
`ScreenUtil.getInstance()` instead of `ScreenUtil()` , for example: `ScreenUtil.getInstance().setHeight(25)`
**Note**
...
...
Please
register
or
login
to post a comment