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
Sohrab Vahidli
2022-01-16 18:48:43 +0400
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Committed by
GitHub
2022-01-16 18:48:43 +0400
Commit
1a0cc39fc1a785bd0b990be04676f0c5551daacc
1a0cc39f
1 parent
317d769c
Update size_extension.dart
some correction changes on dexcription
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
lib/size_extension.dart
lib/size_extension.dart
View file @
1a0cc39
...
...
@@ -13,8 +13,8 @@ extension SizeExtension on num {
///[ScreenUtil.setSp]
double
get
sp
=>
ScreenUtil
().
setSp
(
this
);
///smart size : it check your value if it is bigger than your value set your value
///for example you have set 16.sm() , if for your screen 16.sp() bigger than 16 it will set 16 not 16.sp()
///smart size : it check your value - if it is bigger than your value it will set your value
///for example, you have set 16.sm() , if for your screen 16.sp() is bigger than 16 , then it will set 16 not 16.sp()
///I think that it is good for save size balance on big sizes of screen
double
get
sm
=>
min
(
toDouble
(),
sp
);
...
...
Please
register
or
login
to post a comment