QudsAnimatedWidgetsFlipper class

An animated flipper between two widgets with fade and rotation transitions.

Inheritance

Constructors

QudsAnimatedWidgetsFlipper({required Widget startChild, required Widget endChild, bool showStartChild = true, bool? withRotation, Curve curve = Curves.fastLinearToSlowEaseIn, Duration duration = const Duration(milliseconds: 400), Key? key})
showStartChild if is true the widget will show initially the startChild, if set to false it will show initially the endChild. withRotation indicates weather the icons will transite with rotation. curve the curve of the transition velocity. duration the duration of the transition, initially set to 400 ms
const

Properties

curve Curve
The curve of the transition.
final
duration Duration
The duration of the transition between the two children startChild and endChild
final
endChild Widget
The end child.
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
showStartChild bool
Weather to show the start child. If set to true, startChild will be shown, otherwise endChild will be.
final
startChild Widget
The start child.
final
withRotation bool?
Weather the transition consists of rotation.
final

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
createElement() StatelessElement
Creates a StatelessElement to manage this widget's 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