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
李卓原
2022-02-11 11:09:05 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
4eef4471f9dbcb1c79ba55918ecbe66c48206b51
4eef4471
1 parent
bb4fbd1f
changelog
readme
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
0 deletions
CHANGELOG.md
README.md
README_CN.md
README_PT.md
CHANGELOG.md
View file @
4eef447
...
...
@@ -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
...
...
README.md
View file @
4eef447
...
...
@@ -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:
...
...
README_CN.md
View file @
4eef447
...
...
@@ -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)
```
...
...
README_PT.md
View file @
4eef447
...
...
@@ -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:
...
...
Please
register
or
login
to post a comment