isTablet static method

bool isTablet({
  1. bool orLower = true,
})

Implementation

static bool isTablet({bool orLower = true}) {
  BuildContext? context = OdinApp.get().getNavigatorKey().currentContext;
  if (orLower) {
    return MediaQuery.of(context!).size.width < 1024;
  }
  return !ResponsiveComponent.isMobile() &&
      MediaQuery.of(context!).size.width < 1024;
}