FlutterWind class
FlutterWindInitializer is a widget that loads the Tailwind configuration asynchronously. Wrap your app with this widget to auto-load configuration.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- FlutterWind
- Available extensions
Constructors
-
FlutterWind.new({Key? key, Widget? child, Widget? loadingWidget, bool showDevTools = false, Color? devToolsBackgroundColor, Color? devToolsTextColor, bool showFps = true, bool showMemoryUsage = true, bool showBuildTimes = true, ThemeData? theme, ThemeData? darkTheme, ThemeMode? themeMode, String? title, Color? color, Locale? locale, Iterable<
LocalizationsDelegate> ? localizationsDelegates, Iterable<Locale> ? supportedLocales, bool debugShowCheckedModeBanner = false, bool debugShowMaterialGrid = false, bool useInheritedMediaQuery = false, Map<ShortcutActivator, Intent> ? shortcuts, Map<Type, Action< ? actions, String? restorationScopeId, ScrollBehavior? scrollBehavior, Widget? home, String? initialRoute, List<Intent> >Route> onGenerateInitialRoutes(String)?, Route onGenerateRoute(RouteSettings)?}) -
const
Properties
-
actions
→ Map<
Type, Action< ?Intent> > -
final
- child → Widget?
-
final
- color → Color?
-
final
- darkTheme → ThemeData?
-
final
- debugShowCheckedModeBanner → bool
-
final
- debugShowMaterialGrid → bool
-
final
- devToolsBackgroundColor → Color?
-
final
- devToolsTextColor → Color?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- home → Widget?
-
Either provide a home widget or use routing
final
- initialRoute → String?
-
Routing configuration - only use if home is not provided
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- loadingWidget → Widget?
-
final
- locale → Locale?
-
final
-
localizationsDelegates
→ Iterable<
LocalizationsDelegate> ? -
final
-
onGenerateInitialRoutes
→ List<
Route> Function(String)? -
final
- onGenerateRoute → Route Function(RouteSettings)?
-
final
- restorationScopeId → String?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scrollBehavior → ScrollBehavior?
-
final
-
shortcuts
→ Map<
ShortcutActivator, Intent> ? -
final
- showBuildTimes → bool
-
final
- showDevTools → bool
-
final
- showFps → bool
-
final
- showMemoryUsage → bool
-
final
-
supportedLocales
→ Iterable<
Locale> ? -
final
- theme → ThemeData?
-
final
- themeMode → ThemeMode?
-
final
- title → String?
-
final
- useInheritedMediaQuery → bool
-
final
Methods
-
className(
String classString) → Widget -
Available on Widget, provided by the FlutterWindExtension extension
-
colSpan(
int span) → Widget -
Available on Widget, provided by the GridSpanExtension extension
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< FlutterWind> -
Creates the mutable state for this widget at a given location in the tree.
override
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
rowSpan(
int span) → Widget -
Available on Widget, provided by the GridSpanExtension extension
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
-
withGestures(
{VoidCallback? onTap, VoidCallback? onDoubleTap}) → Widget -
Available on Widget, provided by the GestureExtension extension
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited