isTablet method

bool isTablet(
  1. BuildContext context
)

Implementation

bool isTablet(BuildContext context) {
  final shortestSide = MediaQuery.of(context).size.shortestSide;

  if (shortestSide < kTabletBreakpoint) {
    return false;
  }
  return true;
}