Spacers class

Predefined spacer sizes for consistency.

All spacers auto-detect their direction from the parent Flex widget. Use the s* constants for clarity, or Spacers.of for custom sizes.

Column(children: [
  Widget1(),
  Spacers.s16,  // 16px vertical (auto-detected from Column)
  Widget2(),
])

Row(children: [
  Widget1(),
  Spacers.s8,   // 8px horizontal (auto-detected from Row)
  Widget2(),
])

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

of(double size) Widget
Create a spacer of custom size (direction auto-detected).

Constants

s4 → const ResponsiveSpacer
4px spacer (direction auto-detected)
s8 → const ResponsiveSpacer
8px spacer (direction auto-detected)
s12 → const ResponsiveSpacer
12px spacer (direction auto-detected)
s16 → const ResponsiveSpacer
16px spacer (direction auto-detected)
s24 → const ResponsiveSpacer
24px spacer (direction auto-detected)
s32 → const ResponsiveSpacer
32px spacer (direction auto-detected)
s48 → const ResponsiveSpacer
48px spacer (direction auto-detected)