SmoothButton constructor
SmoothButton({
- Key? key,
- bool isButtonPressed = false,
- Color activeIconColor = Colors.redAccent,
- Color pasifeIconColor = Colors.red,
- Color noShadowColor = Colors.grey,
- Color shadowColor = Colors.white,
- Color activeButtonColor = Colors.white,
- Color pasifeButtonColor = Colors.grey,
- double borderRadius = 12,
- Offset bottomOffset = const Offset(6, 6),
- Offset topOffset = const Offset(-6, -6),
- double blurRadius = 15,
- double spreadRadius = 1,
- String text = "",
- TextStyle textStyle = const TextStyle(fontSize: 16, fontWeight: FontWeight.bold),
- required Duration duration,
- required IconData icon,
- required double iconSize,
- required double buttonheight,
- required double buttonwidth,
Implementation
SmoothButton({
super.key,
this.isButtonPressed = false,
this.activeIconColor = Colors.redAccent,
this.pasifeIconColor = Colors.red,
this.noShadowColor = Colors.grey,
this.shadowColor = Colors.white,
this.activeButtonColor = Colors.white,
this.pasifeButtonColor = Colors.grey,
this.borderRadius = 12,
this.bottomOffset = const Offset(6, 6),
this.topOffset = const Offset(-6, -6),
this.blurRadius = 15,
this.spreadRadius = 1,
this.text = "",
this.textStyle = const TextStyle(
fontSize: 16,
fontWeight: FontWeight.bold,
),
required this.duration,
required this.icon,
required this.iconSize,
required this.buttonheight,
required this.buttonwidth,
// Added parameter for text
});