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-01-19 15:56:25 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
e23818e17ec95695b9b0801ed8560a7826b8d0c6
e23818e1
1 parent
317d769c
fix #321
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
lib/screen_util.dart
lib/screen_util.dart
View file @
e23818e
...
...
@@ -81,10 +81,10 @@ class ScreenUtil {
/// 实际尺寸与UI设计的比例
/// The ratio of actual width to UI design
double
get
scaleWidth
=>
_
screenWidth
/
uiSize
.
width
;
double
get
scaleWidth
=>
screenWidth
/
uiSize
.
width
;
/// /// The ratio of actual height to UI design
double
get
scaleHeight
=>
_
screenHeight
/
uiSize
.
height
;
double
get
scaleHeight
=>
screenHeight
/
uiSize
.
height
;
double
get
scaleText
=>
_minTextAdapt
?
min
(
scaleWidth
,
scaleHeight
)
:
scaleWidth
;
...
...
Please
register
or
login
to post a comment