SlideButton constructor
const
SlideButton({
- Key? key,
- required Future<
void> onCompleted(), - String label = 'Slide to confirm',
- String completedLabel = 'Completed',
- double height = 56.0,
- double radius = AppRadius.circular,
- Color? sliderColor,
- Gradient? sliderGradient,
- Color? backgroundColor,
- IconData icon = Icons.arrow_forward_rounded,
- IconData completedIcon = Icons.check_rounded,
- bool autoReset = true,
- Duration resetDuration = const Duration(seconds: 2),
Implementation
const SlideButton({
super.key,
required this.onCompleted,
this.label = 'Slide to confirm',
this.completedLabel = 'Completed',
this.height = 56.0,
this.radius = AppRadius.circular,
this.sliderColor,
this.sliderGradient,
this.backgroundColor,
this.icon = Icons.arrow_forward_rounded,
this.completedIcon = Icons.check_rounded,
this.autoReset = true,
this.resetDuration = const Duration(seconds: 2),
});