Skip to content

Commit

Permalink
changelog
Browse files Browse the repository at this point in the history
readme
  • Loading branch information
李卓原 committed Feb 11, 2022
1 parent bb4fbd1 commit 4eef447
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

- Rollback of 5.1.1 commit
- Fix the problem of inaccurate height
- merge #332(https://github.com/OpenFlutter/flutter_screenutil/pull/332)
add
num.setVerticalSpacing // SizedBox(height: num * scaleHeight)
num.horizontalSpace // SizedBox(height: num * scaleWidth)

# 5.1.1

Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,8 @@ class _HomePageState extends State<HomePage> {
ScreenUtil().orientation //Screen orientation
0.2.sw //0.2 times the screen width
0.5.sh //50% of screen height
20.setVerticalSpacing // SizedBox(height: 20 * scaleHeight)
20.horizontalSpace // SizedBox(height: 20 * scaleWidth)
```

#### Adapt screen size:
Expand Down
3 changes: 3 additions & 0 deletions README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,9 @@ class _HomePageState extends State<HomePage> {
0.2.sw //屏幕宽度的0.2倍
0.5.sh //屏幕高度的50%
20.setVerticalSpacing // SizedBox(height: 20 * scaleHeight)
20.horizontalSpace // SizedBox(height: 20 * scaleWidth)
```


Expand Down
2 changes: 2 additions & 0 deletions README_PT.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,8 @@ class _HomePageState extends State<HomePage> {
0.2.sw //0,2 vezes a largura da tela
0.5.sh //50% altura da tela
20.setVerticalSpacing // SizedBox(height: 20 * scaleHeight)
20.horizontalSpace // SizedBox(height: 20 * scaleWidth)
```

#### Adaptar o tamanho da tela:
Expand Down

0 comments on commit 4eef447

Please sign in to comment.