isTabletScreen static method

bool isTabletScreen(
  1. BuildContext context
)

Returns true if the device screen is large enough for tablet view but not desktop.

Implementation

static bool isTabletScreen(BuildContext context) {
  return MediaQuery.of(context).size.width >= TSizes().tabletScreenSize &&
      MediaQuery.of(context).size.width < TSizes().desktopScreenSize;
}