Skip to content
pubscout

signed_spacing_flex

1.1.0, released 3 years ago by jakesmd.dev

Flex, Column, and Row widgets that support positive or negative spacing.

WASM-ready
$ flutter pub add signed_spacing_flex
Source repository

What it does

Provides modified versions of Flutter's Flex, Column, and Row widgets called SignedSpacingFlex, SignedSpacingColumn, and SignedSpacingRow. They allow spacing children apart with positive values or overlapping them with negative spacing, along with customizable stacking orders.

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

Use it when

  • You need to create overlapping rows or columns of widgets.
  • You want custom spacing between flex children without manually inserting sized boxes or padding.

Skip it when

  • You require MainAxisAlignment.spaceAround, spaceBetween, or spaceEvenly.
  • You prefer sticking strictly to the official unmodified Flutter SDK layout widgets.

Strengths

  • Supports negative spacing for easy child overlapping.
  • Allows configuring the stacking order of overlapping children.
  • Drop-in replacement API for standard Flex, Column, and Row widgets.

Weaknesses

  • Does not support spaceAround, spaceBetween, or spaceEvenly main axis alignments.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
SignedSpacingColumn(
    spacing: -25,
    stackingOrder: StackingOrder.firstOnTop,
    children: [],
)

Alternatives

Packages that do the same job and could replace signed_spacing_flex.

  • flexible_wrap

    Flutter widget that arranges children in a flexible wrap layout with spacing and RTL support.