SliderButton constructor

const SliderButton({
  1. Key? key,
  2. required Function action,
  3. double radius = 100,
  4. BoxShadow? boxShadow,
  5. Widget? child,
  6. bool vibrationFlag = false,
  7. bool shimmer = true,
  8. double height = 70,
  9. double? buttonSize,
  10. double width = 250,
  11. Alignment alignLabel = const Alignment(0.6, 0),
  12. Color backgroundColor = const Color(0xffe0e0e0),
  13. Color baseColor = Colors.black87,
  14. Color buttonColor = Colors.white,
  15. Color highlightedColor = Colors.white,
  16. Text? label,
  17. Widget? icon,
  18. bool dismissible = true,
  19. double dismissThresholds = 0.75,
  20. bool disable = false,
})

Implementation

const SliderButton({
  super.key,
  required this.action,
  this.radius = 100,
  this.boxShadow,
  this.child,
  this.vibrationFlag = false,
  this.shimmer = true,
  this.height = 70,
  this.buttonSize,
  this.width = 250,
  this.alignLabel = const Alignment(0.6, 0),
  this.backgroundColor = const Color(0xffe0e0e0),
  this.baseColor = Colors.black87,
  this.buttonColor = Colors.white,
  this.highlightedColor = Colors.white,
  this.label,
  this.icon,
  this.dismissible = true,
  this.dismissThresholds = 0.75,
  this.disable = false,
}) : assert((buttonSize ?? 60) <= (height));