DefaultTextStyle class
Cascades a base CellStyle onto descendant Text widgets, which merge
their own style on top. Nest it to restyle a subtree (e.g. dim a whole
panel) without touching each Text.
- Inheritance
-
- Object
- Widget
- StatelessWidget
- DefaultTextStyle
- Available extensions
Constructors
- DefaultTextStyle({Key? key, required CellStyle style, required Widget child})
-
const
Properties
Methods
-
animate(
{Duration? duration, Curve? curve, Object? trigger, bool repeat = false}) → Animate -
Available on Widget, provided by the AnimateExtension extension
Starts an Animate chain over this widget.duration/curveapply to the whole chain. With notriggerit plays on mount; with a non-null trigger it rests on mount and replays whenever the token changes. -
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
createElement(
) → StatelessElement -
Creates the Element that will mount this widget into the tree.
inherited
-
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
-
merge(
{Key? key, required CellStyle style, required Widget child}) → Widget -
Layers
styleon top of the ambient default forchild, rather than replacing it — so an inner scope can add a color without dropping an outer bold. (Plain DefaultTextStyle replaces.) -
of(
BuildContext context) → CellStyle - The cascaded style in scope, or CellStyle.none when none.