AnimButton constructor
const
AnimButton({
- Key? key,
- required String label,
- double height = 45.0,
- double width = 100.0,
- double borderRadius = 8.0,
- required VoidCallback onPressed,
- Color buttonColor = Colors.lightBlueAccent,
- Curve animationCurve = Curves.easeInOut,
- TextStyle textStyle = const TextStyle(color: Colors.white, fontSize: 15.0, letterSpacing: 1.0),
- double animationBegin = 1.0,
- 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});