SpacingScale class

Defines the base spacing values for the design token system.

These values are scaled automatically by Scalify's current scale factor. Configure once, use everywhere for consistent spacing.

Example

ScalifyConfig(
  // ... other config
)
// Then use:
Spacing.md.gap   // SizedBox(height: 16 * scaleFactor)
Spacing.lg.gapW  // SizedBox(width: 24 * scaleFactor)

Constructors

SpacingScale({double xs = 4.0, double sm = 8.0, double md = 16.0, double lg = 24.0, double xl = 32.0, double xxl = 48.0})
Creates a SpacingScale with configurable values.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
lg double
Large spacing value. Default: 24.0
final
md double
Medium spacing value. Default: 16.0
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sm double
Small spacing value. Default: 8.0
final
xl double
Extra large spacing value. Default: 32.0
final
xs double
Extra small spacing value. Default: 4.0
final
xxl double
Double extra large spacing value. Default: 48.0
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
valueOf(Spacing spacing) double
Returns the value for a given Spacing tier.

Operators

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