Gutter constructor

const Gutter({
  1. Key? key,
  2. required Widget child,
  3. bool enabled = true,
})

Creates a Gutter widget.

Sets up the padding wrapper, mandating the child to margin. The enabled flag governs whether to compute padding via GutterTheme.gutterCalc and screen width, defaulting to true for responsive defaults. Initialization: Const-friendly for performance; padding resolved in build for context-dependent values.

Example for responsive content framing:

Gutter(
  child: Container(
    color: Colors.blue.shade100,
    padding: EdgeInsets.symmetric(vertical: 16),
    child: Text("This content has responsive horizontal margins"),
  ),
)

Results in adaptive left/right padding, harmonizing with ArcaneTheme for consistent app-wide spacing.

Implementation

const Gutter({super.key, required this.child, this.enabled = true});