ModulaSliderButton constructor

const ModulaSliderButton({
  1. required String label,
  2. required VoidCallback onConfirmed,
  3. Key? key,
  4. String? successLabel,
  5. Color backgroundColor = Colors.grey,
  6. Color sliderColor = Colors.blue,
  7. Widget? icon,
  8. double height = 56.0,
  9. Duration animationDuration = const Duration(milliseconds: 300),
  10. bool showSuccess = true,
  11. bool autoReset = false,
})

Implementation

const ModulaSliderButton({
  required this.label,
  required this.onConfirmed,
  super.key,
  this.successLabel,
  this.backgroundColor = Colors.grey,
  this.sliderColor = Colors.blue,
  this.icon,
  this.height = 56.0,
  this.animationDuration = const Duration(milliseconds: 300),
  this.showSuccess = true,
  this.autoReset = false,
});