ViewPortWidget.upperBoundedMediaQuery constructor
ViewPortWidget.upperBoundedMediaQuery({})
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:
- UpperBoundedViewPortFactory - provides an upper bound for the decorated ViewPort instance's height and width.
- MediaQueryViewPortFactory - provides MediaQuerySizeViewPort-backed dynamic configuration
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,
);