AnimatedSwitcherZoom class

Animated Switcher with zoom transition

Inheritance

Constructors

AnimatedSwitcherZoom.zoomIn({required Duration duration, Duration? reverseDuration, Curve? switchInCurve, Curve? switchOutCurve, AnimatedSwitcherLayoutBuilder? layoutBuilder, double scaleInFactor = 0.88, double scaleOutFactor = 1.14, Widget? child, Key? key})
Animated Switcher with zoom in transition
AnimatedSwitcherZoom.zoomOut({required Duration duration, Duration? reverseDuration, Curve? switchInCurve, Curve? switchOutCurve, AnimatedSwitcherLayoutBuilder? layoutBuilder, double scaleInFactor = 1.14, double scaleOutFactor = 0.88, Widget? child, Key? key})
Animated Switcher with zoom out transition

Properties

child Widget?
The current child widget to display. If there was a previous child, then that child will be faded out using the switchOutCurve, while the new child is faded in with the switchInCurve, over the duration.
finalinherited
duration Duration
The duration of the transition from the old child value to the new one.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
layoutBuilder AnimatedSwitcherLayoutBuilder
A function that wraps all of the children that are transitioning out, and the child that's transitioning in, with a widget that lays all of them out. This is called every time this widget is built. The function must not return null.
finalinherited
reverseDuration Duration?
The duration of the transition from the new child value to the old one.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
switchInCurve Curve
The animation curve to use when transitioning in a new child.
finalinherited
switchOutCurve Curve
The animation curve to use when transitioning a previous child out.
finalinherited
transitionBuilder AnimatedSwitcherTransitionBuilder
A function that wraps a new child with an animation that transitions the child in when the animation runs in the forward direction and out when the animation runs in the reverse direction. This is only called when a new child is set (not for each build), or when a new transitionBuilder is set. If a new transitionBuilder is set, then the transition is rebuilt for the current child and all previous children using the new transitionBuilder. The function must not return null.
finalinherited

Methods

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