Skip to content
pubscout

pretty_good_spacing

0.1.0, released a year ago by danhtran.me

A configurable spacing and design token system for Flutter apps.

WASM-ready
$ flutter pub add pretty_good_spacing
Source repository

What it does

Provides a consistent spacing scale, EdgeInsets extensions, and gap widgets based on a configurable base unit. It helps maintain design consistency across your application by standardizing margins and padding values.

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

Use it when

  • You want a consistent, scalable spacing system across your Flutter application
  • You need convenient EdgeInsets extensions and gap widgets based on design tokens

Skip it when

  • You already have a comprehensive design system framework handling spacing
  • You prefer using raw pixel values for all layouts

Strengths

  • Configurable base spacing unit
  • Convenient EdgeInsets extensions for padding and margins
  • Includes helpful gap widgets
  • Comprehensive test coverage

Weaknesses

  • Limited to spacing management and tokens only

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
1

Optionally initialize the base spacing unit in your main function.

import 'package:pretty_good_spacing/pretty_good_spacing.dart';

void main() {
  Space.initialize(spacingUnit: 4.0);
  runApp(MyApp());
}

Alternatives

Packages that do the same job and could replace pretty_good_spacing.

Works with

Packages commonly used together with pretty_good_spacing: ones it builds on, ones built on it, and its own family.