isSmallScreen static method

bool isSmallScreen(
  1. BuildContext context
)

Implementation

static bool isSmallScreen(BuildContext context) {
  double width = MediaQuery.of(context).size.width;
  if (width >= breakpoints[smallScreen[0]]![0] &&
      width <= breakpoints[smallScreen[smallScreen.length - 1]]![1]) {
    return true;
  }
  return false;
}