GranularLayoutWidget.withResponsiveSpacings constructor
const
GranularLayoutWidget.withResponsiveSpacings({
- required Widget child,
- GranularLayout resolverBuilder(
- BoxConstraints deviceConstraints
- RawSpacings? xxLargeSpacings,
- RawSpacings? xLargeSpacings,
- RawSpacings? largeSpacings,
- RawSpacings? mediumSpacings,
- RawSpacings? smallSpacings,
- 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,
});