SliderButton constructor

const SliderButton({
  1. Key? key,
  2. required Future<bool?> action(),
  3. double radius = 100,
  4. BoxShadow? boxShadow,
  5. Widget? child,
  6. bool shimmer = true,
  7. double? height,
  8. double? buttonSize,
  9. double? buttonWidth,
  10. double? width,
  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,
  20. Key? buttonKey,
  21. bool rightToLeftLocale = false,
  22. bool useGlassEffect = false,
  23. double glassBlurSigma = 20,
  24. Color? glassBorderColor,
  25. double glassBorderWidth = 1.0,
})

Implementation

const SliderButton({
  super.key,
  required this.action,
  this.radius = 100,
  this.boxShadow,
  this.child,
  this.shimmer = true,
  this.height, // Default niche handle hoga
  this.buttonSize,
  this.buttonWidth,
  this.width, // Default niche handle hoga
  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,
  this.buttonKey,
  this.rightToLeftLocale = false,
  this.useGlassEffect = false,
  this.glassBlurSigma = 20,
  this.glassBorderColor,
  this.glassBorderWidth = 1.0,
});