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:41:37 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b09c76266b8264fbbfa3cfd59675d5426f186fbf
b09c7626
1 parent
b440811e
made responsive extensions more accurate
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
5 deletions
lib/get_utils/src/extensions/context_extensions.dart
lib/get_utils/src/extensions/context_extensions.dart
View file @
b09c762
...
...
@@ -101,13 +101,31 @@ extension ContextExtensionss on BuildContext {
bool
get
showNavbar
=>
(
width
>
800
);
/// True if the width is smaller than 600p
bool
get
isPhone
=>
(
width
<
600
)
;
bool
get
isPhone
OrLess
=>
width
<=
600
;
/// True if the width is largest than 600p
bool
get
isSmallTablet
=>
(
width
>=
600
);
/// True if the width is higher than 600p
bool
get
isPhoneOrWider
=>
width
>=
600
;
/// True if the width is largest than 720p
bool
get
isLargeTablet
=>
(
width
>=
720
);
/// same as [isPhoneOrLess]
bool
get
isPhone
=>
isPhoneOrLess
;
/// True if the width is smaller than 600p
bool
get
isSmallTabletOrLess
=>
width
<=
600
;
/// True if the width is higher than 600p
bool
get
isSmallTabletOrWider
=>
width
>=
600
;
/// same as [isSmallTabletOrLess]
bool
get
isSmallTablet
=>
isSmallTabletOrLess
;
/// True if the width is smaller than 720p
bool
get
isLargeTabletOrLess
=>
width
<=
720
;
/// True if the width is higher than 720p
bool
get
isLargeTabletOrWider
=>
width
>=
720
;
/// same as [isLargeTabletOrLess]
bool
get
isLargeTablet
=>
isLargeTabletOrLess
;
/// True if the current device is Tablet
bool
get
isTablet
=>
isSmallTablet
;
...
...
Please
register
or
login
to post a comment