ResponsivePadding.adaptive constructor

const ResponsivePadding.adaptive({
  1. Key? key,
  2. required Widget child,
})

Uses the adaptive padding from AdaptiFlowData config on all sides.

Default: mobile 16px, tablet 24px, desktop 32px.

Implementation

const ResponsivePadding.adaptive({
  super.key,
  required this.child,
})  : mobilePadding = null,
      tabletPadding = null,
      desktopPadding = null,
      widescreenPadding = null,
      _useAdaptive = true;