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
Hosam Hasan
2020-03-02 16:31:30 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f3046b351a5e071f087a57d51f8dfaee232e850b
f3046b35
1 parent
0768c54d
add sizing extension members to num class
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
lib/size_extension.dart
lib/size_extension.dart
0 → 100644
View file @
f3046b3
import
'flutter_screenutil.dart'
;
extension
SizeExtension
on
num
{
num
get
w
=>
ScreenUtil
().
setWidth
(
this
);
num
get
h
=>
ScreenUtil
().
setHeight
(
this
);
num
get
sp
=>
ScreenUtil
().
setSp
(
this
);
num
get
ssp
=>
ScreenUtil
().
setSp
(
this
,
allowFontScalingSelf:
true
);
}
...
...
Please
register
or
login
to post a comment