isTablet static method

bool isTablet(
  1. BuildContext context
)

Returns true if the device screen width is between 600 and 1024 pixels, typically considered a tablet device.

Implementation

static bool isTablet(BuildContext context) =>
    MediaQuery.of(context).size.width >= 600 &&
    MediaQuery.of(context).size.width < 1024;