ResponsiveWrapper constructor
const
ResponsiveWrapper({
- Key? key,
- required Widget? child,
- List<
ResponsiveBreakpoint> ? breakpoints, - List<
ResponsiveBreakpoint> ? breakpointsLandscape, - List<
ResponsiveTargetPlatform> ? landscapePlatforms, - double minWidth = 450,
- double? maxWidth,
- String? defaultName,
- bool defaultScale = false,
- double defaultScaleFactor = 1,
- double? minWidthLandscape,
- double? maxWidthLandscape,
- String? defaultNameLandscape,
- bool? defaultScaleLandscape,
- double? defaultScaleFactorLandscape,
- Widget? background,
- Color? backgroundColor,
- MediaQueryData? mediaQueryData,
- bool shrinkWrap = true,
- Alignment alignment = Alignment.topCenter,
- bool useShortestSide = false,
- bool debugLog = false,
A wrapper widget that makes child widgets responsive.
Implementation
const ResponsiveWrapper({
Key? key,
required this.child,
this.breakpoints,
this.breakpointsLandscape,
this.landscapePlatforms,
this.minWidth = 450,
this.maxWidth,
this.defaultName,
this.defaultScale = false,
this.defaultScaleFactor = 1,
this.minWidthLandscape,
this.maxWidthLandscape,
this.defaultNameLandscape,
this.defaultScaleLandscape,
this.defaultScaleFactorLandscape,
this.background,
this.backgroundColor,
this.mediaQueryData,
this.shrinkWrap = true,
this.alignment = Alignment.topCenter,
this.useShortestSide = false,
this.debugLog = false,
}) : super(key: key);