PhloxAnimations class

Inheritance

Constructors

PhloxAnimations({Key? key, required Duration duration, required Widget? child, PhloxAnimationsController? controller, Duration? reverseDuration, bool? loop, bool? auto, Duration? wait, double? fromX, double? fromY, double? toX, double? toY, double? fromOpacity, double? toOpacity, double? fromScale, double? toScale, double? fromDegrees, double? toDegrees, Offset? rotateOffset, Curve? moveXCurve, Curve? moveYCurve, Curve? scaleCurve, Curve? opacityCurve, Curve? rotateCurve, Curve? colorChangeCurve, _PhloxAnimationsProgress? progress, VoidCallback? onTap})
const
PhloxAnimations.move({Key? key, required Duration duration, required Widget? child, PhloxAnimationsController? controller, Duration? reverseDuration, bool? loop, bool? auto, Duration? wait, required double? fromX, required double? fromY, required double? toX, required double? toY, double? fromOpacity, double? toOpacity, double? fromScale, double? toScale, double? fromDegrees, double? toDegrees, Offset? rotateOffset, Curve? moveXCurve, Curve? moveYCurve, Curve? scaleCurve, Curve? opacityCurve, Curve? rotateCurve, Curve? colorChangeCurve, _PhloxAnimationsProgress? progress, VoidCallback? onTap})
const
PhloxAnimations.opacity({Key? key, required Duration duration, required Widget? child, PhloxAnimationsController? controller, Duration? reverseDuration, bool? loop, bool? auto, Duration? wait, double? fromX, double? fromY, double? toX, double? toY, required double? fromOpacity, required double? toOpacity, double? fromScale, double? toScale, double? fromDegrees, double? toDegrees, Offset? rotateOffset, Curve? moveXCurve, Curve? moveYCurve, Curve? scaleCurve, Curve? opacityCurve, Curve? rotateCurve, Curve? colorChangeCurve, _PhloxAnimationsProgress? progress, VoidCallback? onTap})
const
PhloxAnimations.rotate({Key? key, required Duration duration, required Widget? child, PhloxAnimationsController? controller, Duration? reverseDuration, bool? loop, bool? auto, Duration? wait, double? fromX, double? fromY, double? toX, double? toY, double? fromOpacity, double? toOpacity, double? fromScale, double? toScale, required double? fromDegrees, required double? toDegrees, Offset? rotateOffset, Curve? moveXCurve, Curve? moveYCurve, Curve? scaleCurve, Curve? opacityCurve, Curve? rotateCurve, Curve? colorChangeCurve, _PhloxAnimationsProgress? progress, VoidCallback? onTap})
const

Properties

auto bool?
final
child Widget?
duration is time from start to end of animation wait is time to delay start animation child is required and you can add your widget into child and your child animate fromOpacitys value from 0 to 1 and change widget alpha(Opacity) toOpacitys value from 0 to 1 and change widget alpha(Opacity) fromX for move widget from x fromY for move widget from y toX for move widget to x toY for move widget to Y fromScale for scale widget from widgets current scale toScale for scale widget from widgets current scale fromDegrees for rotate widget from widgets current angle toDegrees for rotate widget to widgets current angle progress is listener progress animation moveXCurve, moveYCurve, scaleCurve, opacityCurve, rotateCurve, colorChangeCurve animations curve
final
colorChangeCurve Curve?
final
controller PhloxAnimationsController?
final
duration Duration
final
fromDegrees double?
final
fromOpacity double?
final
fromScale double?
final
fromX double?
final
fromY double?
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
loop bool?
final
moveXCurve Curve?
final
moveYCurve Curve?
final
onTap VoidCallback?
final
opacityCurve Curve?
final
progress → _PhloxAnimationsProgress?
final
reverseDuration Duration?
final
rotateCurve Curve?
final
rotateOffset Offset?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scaleCurve Curve?
final
toDegrees double?
final
toOpacity double?
final
toScale double?
final
toX double?
final
toY double?
final
wait Duration?
final

Methods

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

Static Methods

builder({Key? key, required Duration duration, required PhloxAnimationsWidgetBuilder builder, bool? loop, bool? auto, Duration? reverseDuration, Duration? wait, PhloxAnimationsController? controller, double? fromX, double? fromY, double? toX, double? toY, double? fromOpacity, double? toOpacity, double? fromScale, double? toScale, double? fromDegrees, double? toDegrees, Offset? rotateOffset, Curve? moveXCurve, Curve? moveYCurve, Curve? scaleCurve, Curve? opacityCurve, Curve? rotateCurve, Curve? colorChangeCurve, _PhloxAnimationsProgress? progress, Color? fromColor, Color? toColor, double? fromRadius, double? toRadius, Curve? radiusCurve}) PhloxAnimationsBuilder
custom({Key? key, required Duration duration, required PhloxAnimationsWidgetBuilder builder, bool? loop, bool? auto, Duration? reverseDuration, Duration? wait, PhloxAnimationsController? controller, double? fromX, double? fromY, double? toX, double? toY, double? fromOpacity, double? toOpacity, double? fromScale, double? toScale, double? fromDegrees, double? toDegrees, Curve? moveXCurve, Curve? moveYCurve, Curve? scaleCurve, Curve? opacityCurve, Curve? rotateCurve, Curve? colorChangeCurve, _PhloxAnimationsProgress? progress, Color? fromColor, Color? toColor, double? fromRadius, double? toRadius, Curve? radiusCurve}) PhloxCustomAnimations