FadeSlideTransition class

Inheritance

Constructors

FadeSlideTransition({Key key, Offset originOffset: const Offset(0.0, 30.0), Duration delay: const Duration(milliseconds: 0), Duration duration: const Duration(milliseconds: 700), Curve fadeCurve: Curves.easeOut, Curve slideCurve: Curves.easeOut, Curve slideReverseCurve: Curves.easeIn, SlideDirection direction: SlideDirection.vertical, bool immediately: true, _Builder builder})

Properties

builder → _Builder
builder有两个参数, 一个是BuildContext, 就是常规用法, 另一个是_controller, 是 为了在builder方法体中能够控制动画, 比如说进行动画的reverse.
final
delay → Duration
延迟多久开始动画
final
direction SlideDirection
滑动的方向
final
duration → Duration
动画持续多久
final
fadeCurve Curve
淡入淡出的curve
final
immediately → bool
是否立即执行动画
final
originOffset Offset
初始的偏移量, 为了让child在动画之后位移到原来的位置, 而不是位移到别处去, 导致隐患.
final
slideCurve Curve
滑动的curve
final
slideReverseCurve Curve
逆向的滑动curve
final
hashCode → int
The hash code for this object.
read-only, inherited
key Key
Controls how one widget replaces another widget in the tree.
final, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

createState() → _FadeInSlideTransitionState
Creates the mutable state for this widget at a given location in the tree. [...]
override
createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
debugDescribeChildren() → List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
@protected, inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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.debug}) → String
Returns 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 ==(dynamic other) → bool
The equality operator.
inherited