AnimatedAppear class

A wrapper widget for making fade in widget with animation.

If you need to implement fade in widget, Just wrap your widget.

AnimatedAppear(child: Container());

AnimatedAppear can appear your widget little bit delayed.

AnimatedAppear(
  delay: const Duration(milliseconds: 500), // default delay is zero.
  child: Container(),
);

AnimatedAppear also use slide your widget when appear in.

AnimatedAppear(
  delay: const Duration(milliseconds: 500,),
  slideBeginOffset: const Offset(0, 0.2), // It makes your widget appear from the bottom.
  child: Container(),
);

AnimatedAppear provide slideEndOffset.

AnimatedAppear can change Curve. you can set curve property.

AnimatedAppear(
  curve: Curves.bounceIn, // default curve is [Curves.fastOutSlowIn]
  child: Container(),
);
Inheritance

Constructors

AnimatedAppear({Key? key, required Widget child, Duration delay = const Duration(milliseconds: 0), Duration duration = const Duration(milliseconds: 200), Offset slideBeginOffset = Offset.zero, Offset slideEndOffset = Offset.zero, Curve curve = Curves.fastOutSlowIn})
const

Properties

child Widget
final
curve Curve
final
delay Duration
final
duration Duration
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
slideBeginOffset Offset
final
slideEndOffset Offset
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → _AnimatedAppearState
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
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}) 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