ViewPortWidget.upperBoundedMediaQuery constructor

ViewPortWidget.upperBoundedMediaQuery({
  1. required Widget child,
  2. double maxHeight = double.infinity,
  3. double maxWidth = double.infinity,
  4. Key? key,
})

Provides an upper-bounded MediaQueryData-based ViewPort configuration.

Typically used for web version of mobile-first projects for which the mirroring web version is being implemented.

See also:

Implementation

ViewPortWidget.upperBoundedMediaQuery({
  required Widget child,
  double maxHeight = double.infinity,
  double maxWidth = double.infinity,
  Key? key,
}) : this(
        factory: UpperBoundedViewPortFactory(
          const MediaQueryViewPortFactory(),
          maxHeight: maxHeight,
          maxWidth: maxWidth,
        ),
        child: child,
        key: key,
      );