SmoothButton constructor

SmoothButton({
  1. Key? key,
  2. bool isButtonPressed = false,
  3. Color activeIconColor = Colors.redAccent,
  4. Color pasifeIconColor = Colors.red,
  5. Color noShadowColor = Colors.grey,
  6. Color shadowColor = Colors.white,
  7. Color activeButtonColor = Colors.white,
  8. Color pasifeButtonColor = Colors.grey,
  9. double borderRadius = 12,
  10. Offset bottomOffset = const Offset(6, 6),
  11. Offset topOffset = const Offset(-6, -6),
  12. double blurRadius = 15,
  13. double spreadRadius = 1,
  14. String text = "",
  15. TextStyle textStyle = const TextStyle(fontSize: 16, fontWeight: FontWeight.bold),
  16. required Duration duration,
  17. required IconData icon,
  18. required double iconSize,
  19. required double buttonheight,
  20. 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
});