AnimatedButton constructor

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

Creates an AnimatedButton with custom properties.

Implementation

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