Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
fluttertpc_get
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
Ahmed Fwela
2021-10-23 13:58:47 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
8a338a238f9d42c23cb272a2a0a581dd7b301097
8a338a23
1 parent
b09c7626
added desktop responsive
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
lib/get_utils/src/extensions/context_extensions.dart
lib/get_utils/src/extensions/context_extensions.dart
View file @
8a338a2
...
...
@@ -130,6 +130,15 @@ extension ContextExtensionss on BuildContext {
/// True if the current device is Tablet
bool
get
isTablet
=>
isSmallTablet
;
/// True if the width is smaller than 1200p
bool
get
isDesktopOrLess
=>
width
<=
1200
;
/// True if the width is higher than 1200p
bool
get
isDesktopOrWider
=>
width
>=
1200
;
/// same as [isDesktopOrLess]
bool
get
isDesktop
=>
isDesktopOrLess
;
/// Returns a specific value according to the screen size
/// if the device width is higher than or equal to 1200 return
/// [desktop] value. if the device width is higher than or equal to 600
...
...
Please
register
or
login
to post a comment