ResponsivePadding constructor

ResponsivePadding({
  1. Widget? child,
  2. required EdgeInsets padding,
  3. double scaleWatch = 0.1,
  4. double scaleSmallPhone = 1.0,
  5. double scaleMediumPhone = 1.0,
  6. double scaleLargePhone = 1.5,
  7. double scaleSmallTablet = 1.8,
  8. double scaleMediumTablet = 2.0,
  9. double scaleLargeTablet = 2.5,
  10. double scaleMediumDesktop = 3.0,
  11. double scaleLargeDesktop = 3.6,
  12. double scaleTelevision = 4.2,
})

Constructs a responsive padding, that accepts a child Widget.

@param scaleWatch The responsive scale for watch devices (default: 0.1) @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: 1.8) @param scaleMediumTablet The responsive scale for medium tablet devices (default: 2.0) @param scaleLargeTablet The responsive scale for large tablet devices (default: 2.5) @param scaleMediumDesktop The responsive scale for medium desktop devices (default: 3.0) @param scaleLargeDesktop The responsive scale for large desktop devices (default: 3.6) @param scaleTelevision The responsive scale for TV devices (default: 4.2)

Implementation

ResponsivePadding({
  this.child,
  required this.padding,
  double scaleWatch = 0.1,
  double scaleSmallPhone = 1.0,
  double scaleMediumPhone = 1.0,
  double scaleLargePhone = 1.5,
  double scaleSmallTablet = 1.8,
  double scaleMediumTablet = 2.0,
  double scaleLargeTablet = 2.5,
  double scaleMediumDesktop = 3.0,
  double scaleLargeDesktop = 3.6,
  double scaleTelevision = 4.2,
}) : super(
  scaleWatch: scaleWatch,
  scaleSmallPhone: scaleSmallPhone,
  scaleMediumPhone: scaleMediumPhone,
  scaleLargePhone: scaleLargePhone,
  scaleSmallTablet: scaleSmallTablet,
  scaleMediumTablet: scaleMediumTablet,
  scaleLargeTablet: scaleLargeTablet,
  scaleMediumDesktop: scaleMediumDesktop,
  scaleLargeDesktop: scaleLargeDesktop,
  scaleTelevision: scaleTelevision
);