FadeAndTranslate class

A widget that simultaneously fades and translates its child in or out when its visibility is toggled.

Inheritance

Constructors

FadeAndTranslate({Key? key, required Widget child, required Offset translate, bool visible = true, Duration duration = const Duration(milliseconds: 120), Duration? delay, Curve? curve = Curves.easeIn, bool autoStart = false, Duration? autoStartDelay, Function? onStart, Function? onComplete, Function? onCompleted, Function? onDismissed, bool maintainSize = false, bool maintainAnimation = false, bool maintainInteractivity = false, bool maintainSemantics = false, bool maintainState = false})
A widget that simultaneously fades and translates its child in or out when its visibility is toggled.
const

Properties

autoStart bool
If true, the widget will start transitioning as soon as it's built.
final
autoStartDelay Duration?
The duration to delay the transition triggered by autoStart.
final
child Widget
The widget passed to the builder.
final
curve Curve?
The curve to use when transforming the value of the animation.
final
delay Duration?
A Duration used to delay the start of the transition once it's been triggered.
final
duration Duration
The duration of the transition.
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
maintainAnimation bool
Whether to maintain animations within the child subtree when it is not visible.
final
maintainInteractivity bool
Whether to allow the widget to be interactive when hidden.
final
maintainSemantics bool
Whether to maintain the semantics for the widget when it is hidden (e.g. for accessibility).
final
maintainSize bool
Whether to maintain space for where the widget would have been.
final
maintainState bool
Whether to maintain the State objects of the child subtree when it is not visible.
final
onComplete Function?
A callback executed when the transition is completed.
final
onCompleted Function?
A callback executed when the transition animation has completed, when the animation reaches AnimationStatus.completed.
final
onDismissed Function?
A callback executed when the transition animation has reset, the animation reaches AnimationStatus.dismissed.
final
onStart Function?
A callback executed when the transition starts.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
translate Offset
The offset the child is translated to/from while fading in/out.
final
visible bool
Switches between showing the child or hiding it.
final

Methods

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