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
2020-07-09 15:53:38 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Committed by
GitHub
2020-07-09 15:53:38 +0800
Commit
8101020b1a0ef8893631382c11170723c44ead57
8101020b
1 parent
22653f0f
Update README.md
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
README.md
README.md
View file @
8101020
...
...
@@ -66,6 +66,8 @@ ScreenUtil.init(width: 750, height: 1334, allowFontScaling: true); /
### API
#### Pass the px size of the design draft
```
dart
ScreenUtil
().
setWidth
(
540
)
(
sdk
>=
2.6
:
540
.
w
)
//Adapted to screen width
ScreenUtil
().
setHeight
(
200
)
(
sdk
>=
2.6
:
200
.
h
)
//Adapted to screen height
...
...
Please
register
or
login
to post a comment