isTablet static method

bool isTablet(
  1. BuildContext context
)

Implementation

static bool isTablet(BuildContext context) {
  final mqData = MediaQueryData.fromView(View.of(context));
  return mqData.size.shortestSide < 600 ? false : true;
}