isScreenWiderThan function

bool isScreenWiderThan(
  1. BuildContext context,
  2. double? width
)

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);
}