FadeInBase class abstract
An abstract base widget that applies a fade-in and slide-in animation to its child.
The FadeInBase class is intended to be extended by specific animation widgets that define the direction of the slide (e.g., slide in from the left, right, up, or down). The child widget is first rendered offscreen at an initial offset position and then slides into view while fading in.
Parameters:
- child - The widget that will be animated.
- duration - The duration of the fade and slide animation. By default, it is 220 milliseconds.
- delay - An optional delay before the animation starts. Default is no delay.
- offset - The distance (as a percentage of the screen) that the widget will initially be offset before animating into its final position. The default value is 30.0 (30% of the screen).
This base class should be extended by specific widgets that define the direction of the slide animation.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- FadeInBase
- Implementers
Constructors
- FadeInBase.new({Key? key, required Widget child, Duration duration = const Duration(milliseconds: 220), Duration delay = const Duration(milliseconds: 0), double offset = 30.0})
-
Creates a FadeInBase widget with configurable animation parameters.
const
Properties
- child → Widget
-
The widget to be animated.
final
- delay → Duration
-
The delay before the animation starts.
final
- duration → Duration
-
The duration of the animation, including both fading and sliding.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- offset → double
-
The distance (in percentage of the screen) that the child will initially
be offset before sliding into its final position.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< StatefulWidget> -
Creates the mutable state for this widget at a given 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
-
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