Gutter constructor

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

Creates a Gutter widget.

The child parameter is required and specifies the widget to apply padding to. The enabled parameter controls whether padding is applied, defaulting to true.

Example:

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

Implementation

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