pretty_good_spacing
0.1.0, released a year ago by danhtran.me
A configurable spacing and design token system for Flutter apps.
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.
- sbb_design_system_mobile
Official SBB design system mobile UI components and theming for Flutter apps.
80Compare - mix
A Flutter styling system that separates style definitions from widget code using a fluent API.
86Compare - c_material
Provides a large set of predefined Color constants and Material 3 theming utilities for Flutter.
58Compare - material_color_utilities
Algorithms and utilities for the Material Design 3 color system.
86Compare
Works with
Packages commonly used together with pretty_good_spacing: ones it builds on, ones built on it, and its own family.