SlideButton constructor

const SlideButton({
  1. Key? key,
  2. required Future<void> onCompleted(),
  3. String label = 'Slide to confirm',
  4. String completedLabel = 'Completed',
  5. double height = 56.0,
  6. double radius = AppRadius.circular,
  7. Color? sliderColor,
  8. Gradient? sliderGradient,
  9. Color? backgroundColor,
  10. IconData icon = Icons.arrow_forward_rounded,
  11. IconData completedIcon = Icons.check_rounded,
  12. bool autoReset = true,
  13. 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),
});