isMobileScreen static method
Returns true if the device screen is smaller than tablet size, i.e., mobile.
Implementation
static bool isMobileScreen(BuildContext context) {
return MediaQuery.of(context).size.width < TSizes().tabletScreenSize;
}
Returns true if the device screen is smaller than tablet size, i.e., mobile.
static bool isMobileScreen(BuildContext context) {
return MediaQuery.of(context).size.width < TSizes().tabletScreenSize;
}