FlyTheme class
InheritedNotifier widget that provides Fly theme data to the widget tree
- Inheritance
Constructors
- FlyTheme({Key? key, required FlyNotifier notifier, required Widget child})
-
const
Properties
- child → Widget
-
The widget below this widget in the tree.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- notifier → FlyNotifier?
-
The Listenable object to which to listen.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
createElement(
) → InheritedElement -
Inflates this configuration to a concrete instance.
inherited
-
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
-
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
-
updateShouldNotify(
covariant InheritedNotifier< FlyNotifier> oldWidget) → bool -
Whether the framework should notify widgets that inherit from this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
data(
BuildContext context) → FlyNotifier? - Get the notifier for direct access to all theme methods
-
hasFlyTheme(
BuildContext context) → bool - Check if FlyTheme is available in the context
-
of(
BuildContext context) → FlyThemeData - Get the current Fly theme data from the context
-
putBreakpoint(
BuildContext context, String key, double value) → void - Put a breakpoint value
-
putColor(
BuildContext context, String key, Color value) → void - Put a color value
-
putFont(
BuildContext context, String key, List< String> value) → void - Put a font value
-
putFontWeight(
BuildContext context, String key, FontWeight value) → void - Put a font weight value
-
putLeading(
BuildContext context, String key, double value) → void - Put a leading value
-
putRadius(
BuildContext context, String key, double value) → void - Put a radius value
-
putSpacing(
BuildContext context, String key, num value) → void - Put a spacing value
-
putTextStyle(
BuildContext context, String key, TextStyle value) → void - Put a text style value
-
putTracking(
BuildContext context, String key, double value) → void - Put a tracking value
-
update(
BuildContext context, FlyThemeData updater(FlyThemeData current)) → void - Update the theme using a function
-
updateBreakpoint(
BuildContext context, FlyBreakpointToken updater(FlyBreakpointToken current)) → void - Update breakpoint token
-
updateColors(
BuildContext context, FlyColorToken updater(FlyColorToken current)) → void - Update colors token
-
updateFont(
BuildContext context, FlyFontToken updater(FlyFontToken current)) → void - Update font token
-
updateFontWeight(
BuildContext context, FlyFontWeightToken updater(FlyFontWeightToken current)) → void - Update font weight token
-
updateLeading(
BuildContext context, FlyLeadingToken updater(FlyLeadingToken current)) → void - Update leading token
-
updateRadius(
BuildContext context, FlyRadiusToken updater(FlyRadiusToken current)) → void - Update radius token
-
updateSpacing(
BuildContext context, FlySpacingToken updater(FlySpacingToken current)) → void - Update spacing token
-
updateTextStyle(
BuildContext context, FlyTextStyleToken updater(FlyTextStyleToken current)) → void - Update text style token
-
updateTracking(
BuildContext context, FlyTrackingToken updater(FlyTrackingToken current)) → void - Update tracking token