FlexiSpacing class
A centralized, responsive spacing system for uniform layout scaling.
FlexiSpacing provides a set of standardized spacing values that adapt fluidly across mobile, tablet, and desktop breakpoints using FlexiSpacingConfig provided by FlexiConfig.
Usage:
Padding(
padding: EdgeInsets.all(FlexiSpacing.m(context)),
child: ...
)
- Annotations
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
-
l(
BuildContext context) → double - Large spacing (Mobile: 24, Tablet: 30, Desktop: 36)
-
m(
BuildContext context) → double - Medium spacing (Mobile: 16, Tablet: 20, Desktop: 24)
-
s(
BuildContext context) → double - Small spacing (Mobile: 8, Tablet: 10, Desktop: 12)
-
xl(
BuildContext context) → double - Extra large spacing (Mobile: 32, Tablet: 40, Desktop: 48)
-
xs(
BuildContext context) → double - Extra small spacing (Mobile: 4, Tablet: 6, Desktop: 8)
-
xxl(
BuildContext context) → double - Extra extra large spacing (Mobile: 48, Tablet: 60, Desktop: 72)