AnimatedButton class

A button widget featuring multiple layered custom animation effects.

Inheritance

Constructors

AnimatedButton({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.

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
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
handleMouseEvent(MouseEvent event, int localX, int localY) → void
Internal mouse event handler delegated from parent event loop.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
render(Buffer buffer, Rect area) → void
Renders the widget onto the provided buffer within the specified area.
inherited
toString() String
A string representation of this object.
inherited

Operators

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