isScreenWiderThan function
Measures the screen size to determine whether it is strictly larger
than width
, scaled to the current font factor.
Implementation
bool isScreenWiderThan(
BuildContext context,
double? width,
) {
return width == null ||
MediaQuery.of(context).size.width > scaleByFontFactor(width);
}