ModulaSliderButton constructor
const
ModulaSliderButton({
- required String label,
- required VoidCallback onConfirmed,
- Key? key,
- String? successLabel,
- Color backgroundColor = Colors.grey,
- Color sliderColor = Colors.blue,
- Widget? icon,
- double height = 56.0,
- Duration animationDuration = const Duration(milliseconds: 300),
- bool showSuccess = true,
- 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,
});