CommonLayoutWidget constructor
const
CommonLayoutWidget({
- required Widget child,
- CommonLayout resolverBuilder(
- BoxConstraints deviceConstraints
- RawSpacings? spacings,
Creates a CommonLayoutWidget with a single default spacings for all breakpoints
If spacings argument is provided, all the respective breakpoint's spacings should be the same. If you want to
specify each breakpoint spacing, use the CommonLayoutWidget.withResponsiveSpacings constructor.
To override with your own CommonLayout, use the resolverBuilder argument.
Implementation
const CommonLayoutWidget({required this.child, this.resolverBuilder, RawSpacings? spacings})
: desktopSpacings = spacings,
tabletSpacings = spacings,
phoneSpacings = spacings,
tinyHardwareSpacings = spacings;