Skip to content

Commit

Permalink
change maxwidth tablet
Browse files Browse the repository at this point in the history
  • Loading branch information
firgia committed Nov 1, 2021
1 parent d457a2b commit 6fe2b91
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/app/shared_components/responsive_builder.dart
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,17 @@ class ResponsiveBuilder extends StatelessWidget {
MediaQuery.of(context).size.width < 650;

static bool isTablet(BuildContext context) =>
MediaQuery.of(context).size.width < 1100 &&
MediaQuery.of(context).size.width < 1250 &&
MediaQuery.of(context).size.width >= 650;

static bool isDesktop(BuildContext context) =>
MediaQuery.of(context).size.width >= 1100;
MediaQuery.of(context).size.width >= 1250;

@override
Widget build(BuildContext context) {
return LayoutBuilder(
builder: (context, constraints) {
if (constraints.maxWidth >= 1100) {
if (constraints.maxWidth >= 1250) {
return desktopBuilder(context, constraints);
} else if (constraints.maxWidth >= 650) {
return tabletBuilder(context, constraints);
Expand Down

0 comments on commit 6fe2b91

Please sign in to comment.