Skip to content
pubscout

flutter_gutter

2.2.0, released 2 years ago by caseycrogers.dev

Provides consistent, screen-size responsive gaps and margins between widgets based on Material breakpoints.

WASM-ready
$ flutter pub add flutter_gutter
Source repository

What it does

It automatically sizes gaps and margins according to the current screen size and Material Design responsive layout system. It detects the axis direction from parent widgets automatically or via context configurations.

AI-written summary of version 2.2.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You want gaps and margins that automatically adapt to screen sizes and Material breakpoints.
  • You want spacing widgets that automatically adapt to row or column axes without manual height/width specifications.

Skip it when

  • You need fixed pixel spacing that never changes across screen sizes.
  • You prefer using the standard Gap package with explicit sizes.

Strengths

  • Auto-sizes gap spacing according to Material breakpoints.
  • Detects the axis of arbitrary widgets automatically or via configuration.
  • Provides convenient BuildContext extensions for gutter and margin sizes.

Weaknesses

  • Dynamic axis checks use runtime reflection/checks which may slightly increase bundle size.
  • Relies on Material Design responsive layout concepts.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
1
return Column(
  children: [
    const Text('I hate using sized box.'),
    Gutter(),
    const Text('And now I don\'t have to!'),
  ],
);

Alternatives

Packages that do the same job and could replace flutter_gutter.