FadeBox class final
The render-safe fade primitive: one named place where every Fluvie fade becomes pixels.
Paint-equivalent to a raw Opacity by construction:
- at exactly
1.0it mounts nothing — the child paints directly, exactly as Opacity at 1 would paint it (and as the keyframe applier paints an element with no opacity at all); - everywhere else it mounts a single Opacity with opacity clamped
into
[0, 1](spring overshoot can push a composed keyframe past the bounds mid-flight); - at
0the Opacity holds the layout slot whileRenderOpacityskips painting entirely — hidden elements never collapse the layout.
The keyframe applier and MotionTarget's collect-pass placeholder build
this instead of Opacity directly, so future fade upgrades (such as a
shader fade) land in exactly one widget.
- Inheritance
- Available extensions
Constructors
Properties
- child → Widget
-
The element being faded.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- opacity → double
-
The fade value as given — clamped into
[0, 1]only at build time, so probes and debuggers see the raw composed number.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
animate(
List< Animation> animations, {Anchor? anchor, TimeRange? window, Defaults? defaults}) → Widget -
Available on Widget, provided by the Animate extension
Bindsanimationsto this widget by wrapping it in aMotionTarget. -
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
createElement(
) → StatelessElement -
Creates a StatelessElement to manage this widget's location in the tree.
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
-
show(
{Time? from, Time? to}) → Widget -
Available on Widget, provided by the Animate extension
Visibility-window sugar:animate([], window: from.to(to))withfromdefaulting to the window start andtoto its end. -
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
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited