AnimatedButton class

A button widget featuring multiple layered custom animation effects.

Inheritance

Constructors

AnimatedButton({Key? key, required String text, required void onPressed(), Style style = const Style(background: CharmColors.charple, foreground: Colors.white), int? width, int? height})
Creates an AnimatedButton with custom properties.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
height → int?
The height constraint of the button. If null, stretches to fit.
final
key → Key?
The optional key for this widget.
finalinherited
onPressed → void Function()
Callback executed when the button is pressed and released.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
style → Style
The baseline style (foreground/background) of the button.
final
text → String
The text label displayed on the button.
final
wantsKeyReleaseEvents → bool
Whether this widget opts in to receiving KeyEventType.release events.
no setterinherited
width → int?
The width constraint of the button. If null, stretches to fit.
final

Methods

createElement() → Element
Creates an Element to manage this widget's location in the tree.
inherited
createState() → State<AnimatedButton>
Creates the mutable state for this widget at a given location in the tree.
override
getIntrinsicHeight(int width) → int
Computes the intrinsic height of this widget under the given width constraint.
inherited
getIntrinsicWidth(int height) → int
Computes the intrinsic width of this widget under the given height constraint.
inherited
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