ConfirmationSlider constructor

const ConfirmationSlider({
  1. Key? key,
  2. double height = 70,
  3. double width = 300,
  4. Color backgroundColor = Colors.white,
  5. Color? backgroundColorEnd,
  6. Color foregroundColor = Colors.blueAccent,
  7. Color iconColor = Colors.white,
  8. BoxShadow? shadow,
  9. Widget sliderButtonContent = const Icon(Icons.chevron_right, color: Colors.white, size: 35),
  10. String text = "Slide to confirm",
  11. TextStyle? textStyle,
  12. required VoidCallback onConfirmation,
  13. VoidCallback? onTapDown,
  14. VoidCallback? onTapUp,
  15. BorderRadius? foregroundShape,
  16. BorderRadius? backgroundShape,
  17. bool stickToEnd = false,
})

Implementation

const ConfirmationSlider({
  Key? key,
  this.height = 70,
  this.width = 300,
  this.backgroundColor = Colors.white,
  this.backgroundColorEnd,
  this.foregroundColor = Colors.blueAccent,
  this.iconColor = Colors.white,
  this.shadow,
  this.sliderButtonContent = const Icon(
    Icons.chevron_right,
    color: Colors.white,
    size: 35,
  ),
  this.text = "Slide to confirm",
  this.textStyle,
  required this.onConfirmation,
  this.onTapDown,
  this.onTapUp,
  this.foregroundShape,
  this.backgroundShape,
  this.stickToEnd = false,
}) : assert(height >= 25 && width >= 250);