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:54:23 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Committed by
GitHub
2020-07-09 15:54:23 +0800
Commit
caed30e4368b582499498fa5705a21c68cc9b7ef
caed30e4
1 parent
8101020b
Update README_CN.md
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
README_CN.md
README_CN.md
View file @
caed30e
...
...
@@ -69,7 +69,7 @@ ScreenUtil.init(width: 750, height: 1334, allowFontScaling: true); /
### 使用
### API
#### 传入设计稿的px尺寸 px px px !
```
dart
ScreenUtil
().
setWidth
(
540
)
(
sdk
>=
2.6
:
540
.
w
)
//根据屏幕宽度适配尺寸
ScreenUtil
().
setHeight
(
200
)
(
sdk
>=
2.6
:
200
.
h
)
//根据屏幕高度适配尺寸
...
...
Please
register
or
login
to post a comment