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-05 02:34:51 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
50799df2d0e755f9227d47abaf372c443736ea72
50799df2
1 parent
30541c21
fixed responsiveValue
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
8 deletions
lib/get_utils/src/extensions/context_extensions.dart
lib/get_utils/src/extensions/context_extensions.dart
View file @
50799df
...
...
@@ -129,14 +129,21 @@ extension ContextExtensionss on BuildContext {
if
(
GetPlatform
.
isDesktop
)
{
deviceWidth
=
mediaQuerySize
.
width
;
}
if
(
deviceWidth
>=
1200
&&
desktop
!=
null
)
{
return
desktop
;
}
else
if
(
deviceWidth
>=
600
&&
tablet
!=
null
)
{
return
tablet
;
}
else
if
(
deviceWidth
<
300
&&
watch
!=
null
)
{
return
watch
;
}
else
{
return
mobile
!;
if
(
deviceWidth
>=
1200
)
{
if
(
desktop
!=
null
)
{
return
desktop
;
}
}
if
(
deviceWidth
>=
600
)
{
if
(
tablet
!=
null
)
{
return
tablet
;
}
}
if
(
deviceWidth
>=
300
)
{
if
(
mobile
!=
null
)
{
return
mobile
;
}
}
return
watch
!;
}
}
...
...
Please
register
or
login
to post a comment