AnimatedButton constructor

AnimatedButton({
  1. required String text,
  2. required void onPressed(),
  3. Style style = const Style(background: CharmColors.charple, foreground: Colors.white),
  4. int? width,
  5. int? height,
})

Creates an AnimatedButton with custom properties.

Implementation

AnimatedButton({
  required this.text,
  required this.onPressed,
  this.style = const Style(
    background: CharmColors.charple,
    foreground: Colors.white,
  ),
  this.width,
  this.height,
});