GranularLayoutWidget.withResponsiveSpacings constructor

const GranularLayoutWidget.withResponsiveSpacings({
  1. required Widget child,
  2. GranularLayout resolverBuilder(
    1. BoxConstraints deviceConstraints
    )?,
  3. RawSpacings? xxLargeSpacings,
  4. RawSpacings? xLargeSpacings,
  5. RawSpacings? largeSpacings,
  6. RawSpacings? mediumSpacings,
  7. RawSpacings? smallSpacings,
  8. RawSpacings? xSmallSpacings,
})

Creates a GranularLayoutWidget with specified breakpoints spacings

If not all spacings are provided, it uses the same GranularLayout.value logic to pick the closest and most suitable. If you want to a single spacing for all breakpoints, use the default constructor.

To override with your own GranularLayout, use the resolverBuilder argument.

Implementation

const GranularLayoutWidget.withResponsiveSpacings({
  required this.child,
  this.resolverBuilder,
  this.xxLargeSpacings,
  this.xLargeSpacings,
  this.largeSpacings,
  this.mediumSpacings,
  this.smallSpacings,
  this.xSmallSpacings,
});