WindConfig class
Wind UI configuration helper class.
Provides a convenient way to initialize Wind UI with default settings. This class sets up the complete design system including colors, spacing, border radius, and shadows that can be used throughout your application.
Usage
Call initialize once in your app's main function before runApp():
void main() {
WindConfig.initialize();
runApp(MyApp());
}
Default Configuration
The default configuration includes:
- Colors: Primary, secondary, gray scale, and semantic colors
- Spacing: Scale from 0 to 64 (0, 1, 2, 4, 6, 8, 10, 12, 16, 20, 24, 32, 40, 48, 56, 64)
- Border Radius: sm, md, lg, xl, 2xl, 3xl, full
- Shadows: sm, md, lg, xl, 2xl
- Breakpoints: sm (640px), md (768px), lg (1024px), xl (1280px), 2xl (1536px)
Color Palette
Primary Colors
primary-50
toprimary-900
: Blue color scalesecondary-50
tosecondary-900
: Coral red color scalegray-50
togray-900
: Neutral gray scale
Semantic Colors
success
: Green for success stateswarning
: Orange for warning stateserror
: Red for error statesinfo
: Blue for informational states
Basic Colors
white
,black
: Pure white and blacktransparent
: Fully transparent
Constructors
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
-
initialize(
) → void - Initialize Wind UI with default configuration.