ResponsiveWrapper constructor

const ResponsiveWrapper({
  1. Key? key,
  2. required Widget? child,
  3. List<ResponsiveBreakpoint>? breakpoints,
  4. List<ResponsiveBreakpoint>? breakpointsLandscape,
  5. List<ResponsiveTargetPlatform>? landscapePlatforms,
  6. double minWidth = 450,
  7. double? maxWidth,
  8. String? defaultName,
  9. bool defaultScale = false,
  10. double defaultScaleFactor = 1,
  11. double? minWidthLandscape,
  12. double? maxWidthLandscape,
  13. String? defaultNameLandscape,
  14. bool? defaultScaleLandscape,
  15. double? defaultScaleFactorLandscape,
  16. Widget? background,
  17. Color? backgroundColor,
  18. MediaQueryData? mediaQueryData,
  19. bool shrinkWrap = true,
  20. Alignment alignment = Alignment.topCenter,
  21. bool useShortestSide = false,
  22. 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);