isTablet static method
This method checks the width of the screen in the given BuildContext context
and returns true
if the width is less than 1080, indicating a tablet.
Implementation
static bool isTablet(BuildContext context) {
return MediaQuery.sizeOf(context).width < 1080;
}