AnyAnimatedButtonParams class

Constructors

AnyAnimatedButtonParams({required double height, Key? key, AlignmentGeometry? alignment, EdgeInsetsGeometry? padding, Color? color, Decoration? decoration, Decoration? foregroundDecoration, double? width, BoxConstraints? constraints, EdgeInsetsGeometry? margin, Matrix4? transform, AlignmentGeometry? transformAlignment, Widget? child = const SizedBox(), Clip clipBehavior = Clip.none, Curve curve = Curves.linear, Duration duration = const Duration(milliseconds: 300), VoidCallback? onEnd})
AnyAnimatedButtonParams.error({double? size, Color backgroundColor = Colors.red, Color iconColor = Colors.white, EdgeInsets padding = const EdgeInsets.all(8.0), Duration duration = const Duration(milliseconds: 300)})
Creates default look of error button with customizable colors and sizes.
factory
AnyAnimatedButtonParams.progress({double? size, Color backgroundColor = Colors.blue, Color progressColor = Colors.white, EdgeInsets padding = const EdgeInsets.all(10.0), Duration duration = const Duration(milliseconds: 300)})
Creates default look of progress button with customizable colors and sizes.
factory
AnyAnimatedButtonParams.success({double? size, Color backgroundColor = Colors.green, Color iconColor = Colors.white, EdgeInsets padding = const EdgeInsets.all(8.0), Duration duration = const Duration(milliseconds: 300)})
Creates default look of success button with customizable colors and sizes.
factory

Properties

alignment AlignmentGeometry?
final
child Widget?
final
clipBehavior Clip
final
color Color?
final
constraints BoxConstraints?
final
curve Curve
final
decoration Decoration?
final
duration Duration
final
foregroundDecoration Decoration?
final
hashCode int
The hash code for this object.
no setterinherited
height double
final
key Key?
All parameters that should be animated (i.e. colors, border radius, size) should be put directly in one of the corresponding fields. All of the other elements (i.e. Text, Icon) should be put inside the child field.
final
margin EdgeInsetsGeometry?
final
onEnd VoidCallback?
final
padding EdgeInsetsGeometry?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
transform Matrix4?
final
transformAlignment AlignmentGeometry?
final
width double?
final

Methods

copyWith({Key? key, AlignmentGeometry? alignment, EdgeInsetsGeometry? padding, Color? color, Decoration? decoration, Decoration? foregroundDecoration, double? width, double? height, EdgeInsetsGeometry? margin, Matrix4? transform, Widget? child}) AnyAnimatedButtonParams
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited