AnimButton constructor

const AnimButton({
  1. Key? key,
  2. required String label,
  3. double height = 45.0,
  4. double width = 100.0,
  5. double borderRadius = 8.0,
  6. required VoidCallback onPressed,
  7. Color buttonColor = Colors.lightBlueAccent,
  8. Curve animationCurve = Curves.easeInOut,
  9. TextStyle textStyle = const TextStyle(color: Colors.white, fontSize: 15.0, letterSpacing: 1.0),
  10. double animationBegin = 1.0,
  11. double animationEnd = 0.75,
})

Implementation

const AnimButton(
    {super.key,
    required this.label,
    this.height = 45.0,
    this.width = 100.0,
    this.borderRadius = 8.0,
    required this.onPressed,
    this.buttonColor = Colors.lightBlueAccent,
    this.animationCurve = Curves.easeInOut,
    this.textStyle = const TextStyle(
        color: Colors.white, fontSize: 15.0, letterSpacing: 1.0),
    this.animationBegin = 1.0,
    this.animationEnd = 0.75});