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
李卓原
2020-12-16 17:20:36 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
eea2cdca52d070e362d009a4b8763aaf556c3af2
eea2cdca
1 parent
bb98d5d5
有些不需要初始化值
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
lib/screenutil.dart
lib/screenutil.dart
View file @
eea2cdc
...
...
@@ -12,14 +12,14 @@ class ScreenUtil {
/// UI设计中手机尺寸 , px
/// Size of the phone in UI Design , px
Size
uiSize
=
defaultSize
;
Size
uiSize
;
/// 控制字体是否要根据系统的“字体大小”辅助选项来进行缩放。默认值为false。
/// allowFontScaling Specifies whether fonts should scale to respect Text Size accessibility settings. The default is false.
bool
allowFontScaling
=
false
;
bool
allowFontScaling
;
static
double
_pixelRatio
=
1
;
static
double
_textScaleFactor
=
1
;
static
double
_pixelRatio
;
static
double
_textScaleFactor
;
static
double
_screenWidth
;
static
double
_screenHeight
;
static
double
_statusBarHeight
;
...
...
Please
register
or
login
to post a comment