isMobileScreen static method

bool isMobileScreen(
  1. BuildContext context
)

Implementation

static bool isMobileScreen(BuildContext context) {
  var screenWidth = MediaQuery.of(context).size.width;
  return screenWidth <= 375; // iPhone SE in px
}