ConfirmationSlider constructor
const
ConfirmationSlider({
- Key? key,
- double height = 70,
- double width = 300,
- Color backgroundColor = Colors.white,
- Color? backgroundColorEnd,
- Color foregroundColor = Colors.blueAccent,
- Color iconColor = Colors.white,
- BoxShadow? shadow,
- Widget sliderButtonContent = const Icon(Icons.chevron_right, color: Colors.white, size: 35),
- String text = "Slide to confirm",
- TextStyle? textStyle,
- required VoidCallback onConfirmation,
- VoidCallback? onTapDown,
- VoidCallback? onTapUp,
- BorderRadius? foregroundShape,
- BorderRadius? backgroundShape,
- 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);