ResponsiveContainer constructor

ResponsiveContainer({
  1. Key? key,
  2. Widget? child,
  3. AlignmentGeometry? alignment,
  4. EdgeInsetsGeometry? padding,
  5. Color? color,
  6. Decoration? decoration,
  7. Decoration? foregroundDecoration,
  8. double? width,
  9. double? height,
  10. BoxConstraints? constraints,
  11. EdgeInsetsGeometry? margin,
  12. Matrix4? transform,
  13. Clip clipBehavior = Clip.none,
  14. double scaleWatch = 0.8,
  15. double scaleSmallPhone = 1.0,
  16. double scaleMediumPhone = 1.0,
  17. double scaleLargePhone = 1.5,
  18. double scaleSmallTablet = 2.0,
  19. double scaleMediumTablet = 2.5,
  20. double scaleLargeTablet = 3.0,
  21. double scaleMediumDesktop = 4.0,
  22. double scaleLargeDesktop = 5.6,
  23. double scaleTelevision = 7.2,
})

Constructs a responsive container, that accepts a child Widget.

@param scaleWatch The responsive scale for watch devices (default: 0.8) @param scaleSmallPhone The responsive scale for small phone devices (default: 1.0) @param scaleMediumPhone The responsive scale for medium phone devices (default: 1.0) @param scaleLargePhone The responsive scale for large phone devices (default: 1.5) @param scaleSmallTablet The responsive scale for small tablet devices (default: 2.0) @param scaleMediumTablet The responsive scale for medium tablet devices (default: 2.5) @param scaleLargeTablet The responsive scale for large tablet devices (default: 3.0) @param scaleMediumDesktop The responsive scale for medium desktop devices (default: 4.0) @param scaleLargeDesktop The responsive scale for large desktop devices (default: 5.6) @param scaleTelevision The responsive scale for TV devices (default: 7.2)

Implementation

ResponsiveContainer({
  Key? key,
  this.child,
  AlignmentGeometry? alignment,
  EdgeInsetsGeometry? padding,
  Color? color,
  Decoration? decoration,
  Decoration? foregroundDecoration,
  double? width,
  double? height,
  BoxConstraints? constraints,
  EdgeInsetsGeometry? margin,
  Matrix4? transform,
  Clip clipBehavior = Clip.none,
  double scaleWatch = 0.8,
  double scaleSmallPhone = 1.0,
  double scaleMediumPhone = 1.0,
  double scaleLargePhone = 1.5,
  double scaleSmallTablet = 2.0,
  double scaleMediumTablet = 2.5,
  double scaleLargeTablet = 3.0,
  double scaleMediumDesktop = 4.0,
  double scaleLargeDesktop = 5.6,
  double scaleTelevision = 7.2,
}) : super(
    scaleWatch: scaleWatch,
    scaleSmallPhone: scaleSmallPhone,
    scaleMediumPhone: scaleMediumPhone,
    scaleLargePhone: scaleLargePhone,
    scaleSmallTablet: scaleSmallTablet,
    scaleMediumTablet: scaleMediumTablet,
    scaleLargeTablet: scaleLargeTablet,
    scaleMediumDesktop: scaleMediumDesktop,
    scaleLargeDesktop: scaleLargeDesktop,
    scaleTelevision: scaleTelevision
  ) {
      set('key', key)
      .set('alignment', alignment)
      .set('padding', padding)
      .set('color', color)
      .set('decoration', decoration)
      .set('foregroundDecoration', foregroundDecoration)
      .set('width', width)
      .set('height', height)
      .set('constraints', constraints)
      .set('margin', margin)
      .set('transform', transform)
      .set('clipBehavior', clipBehavior);
    }