SliderButton constructor

SliderButton({
  1. required Future<bool?> 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? buttonWidth,
  10. double width = 270,
  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. Widget? label,
  17. Widget? icon,
  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.buttonWidth,
  this.width = 270,
  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.dismissThresholds = 0.75,
  this.disable = false,
}) : assert((buttonSize ?? 60) <= (height));