isMobileScreen static method

bool isMobileScreen(
  1. BuildContext context
)

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;
}