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-10-28 14:06:51 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Committed by
GitHub
2020-10-28 14:06:51 +0800
Commit
9a9148ef387efd344eaf7938c74a38dd8ff1fabe
9a9148ef
1 parent
47933b5e
Update README_CN.md
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
README_CN.md
README_CN.md
View file @
9a9148e
...
...
@@ -78,12 +78,12 @@ ScreenUtil.init(context, designSize: Size(750, 1334), allowFontScaling: true);
ScreenUtil
().
setSp
(
24
,
allowFontScalingSelf:
true
)
(
sdk
>=
2.6
:
24
.
ssp
)
//适配字体(根据系统的“字体大小”辅助选项来进行缩放)
ScreenUtil
().
setSp
(
24
,
allowFontScalingSelf:
false
)
(
sdk
>=
2.6
:
24
.
nsp
)
//适配字体(不会根据系统的“字体大小”辅助选项来进行缩放)
ScreenUtil
.
pixelRatio
//设备的像素密度
ScreenUtil
.
screenWidth
(
sdk
>=
2.6
:
1
.
sw
)
//设备宽度
ScreenUtil
.
screenHeight
(
sdk
>=
2.6
:
1
.
sh
)
//设备高度
ScreenUtil
.
bottomBarHeight
//底部安全区距离,适用于全面屏下面有按键的
ScreenUtil
.
statusBarHeight
//状态栏高度 刘海屏会更高 单位dp
ScreenUtil
.
textScaleFactor
//系统字体缩放比例
ScreenUtil
().
pixelRatio
//设备的像素密度
ScreenUtil
().
screenWidth
(
sdk
>=
2.6
:
1
.
sw
)
//设备宽度
ScreenUtil
().
screenHeight
(
sdk
>=
2.6
:
1
.
sh
)
//设备高度
ScreenUtil
().
bottomBarHeight
//底部安全区距离,适用于全面屏下面有按键的
ScreenUtil
().
statusBarHeight
//状态栏高度 刘海屏会更高 单位dp
ScreenUtil
().
textScaleFactor
//系统字体缩放比例
ScreenUtil
().
scaleWidth
// 实际宽度的dp与设计稿px的比例
ScreenUtil
().
scaleHeight
// 实际高度的dp与设计稿px的比例
...
...
Please
register
or
login
to post a comment