SliderButton constructor

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

Implementation

SliderButton({
  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));