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-12-31 10:54:26 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Committed by
GitHub
2020-12-31 10:54:26 +0800
Commit
735d93d2a4fe0274d99cefc8d35bc0cc96df7806
735d93d2
1 parent
c7829b27
Update screenutil.dart
close #190
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
lib/screenutil.dart
lib/screenutil.dart
View file @
735d93d
...
...
@@ -87,7 +87,7 @@ class ScreenUtil {
double
get
scaleText
=>
min
(
scaleWidth
,
scaleHeight
);
/// 根据UI设计的设备宽度适配
/// 高度也可以根据这个来做适配可以保证不变形,比如你
先
要一个正方形的时候.
/// 高度也可以根据这个来做适配可以保证不变形,比如你
想
要一个正方形的时候.
/// Adapted to the device width of the UI Design.
/// Height can also be adapted according to this to ensure no deformation ,
/// if you want a square
...
...
@@ -103,6 +103,7 @@ class ScreenUtil {
/// does not match the current style effect, or if there is a difference in shape.
double
setHeight
(
num
height
)
=>
height
*
scaleHeight
;
///根据宽度或高度中的较小值进行适配
///Adapt according to the smaller of width or height
double
radius
(
num
r
)
=>
r
*
scaleText
;
...
...
Please
register
or
login
to post a comment