TF-652 Fix responsive landscape screen some device mobile (iPhone 13 Pro Max)
This commit is contained in:
@@ -66,4 +66,8 @@ class ResponsiveUtils {
|
||||
return widthScreen < 444 ? widthScreen : 444;
|
||||
}
|
||||
}
|
||||
|
||||
bool isSmallScreen(BuildContext context) {
|
||||
return isPortraitMobile(context) || isLandscapeMobile(context) || isTablet(context);
|
||||
}
|
||||
}
|
||||
@@ -22,10 +22,11 @@ class ResponsiveWidget extends StatelessWidget {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
if (desktop != null && responsiveUtils.isDesktop(context)) return desktop!;
|
||||
if (tabletLarge != null && responsiveUtils.isTabletLarge(context)) return tabletLarge!;
|
||||
log('ResponsiveWidget::build(): WIDTH_SIZE: ${responsiveUtils.getDeviceWidth(context)}');
|
||||
if (landscapeMobile != null && responsiveUtils.isLandscapeMobile(context)) return landscapeMobile!;
|
||||
if (tablet != null && responsiveUtils.isTablet(context)) return tablet!;
|
||||
if (tabletLarge != null && responsiveUtils.isTabletLarge(context)) return tabletLarge!;
|
||||
if (desktop != null && responsiveUtils.isDesktop(context)) return desktop!;
|
||||
return mobile;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user