SliderButton constructor
const
SliderButton({
- required VoidCallback onConfirmation,
- Key? key,
- double height = 70,
- double width = 300,
- Color backgroundColor = Colors.white,
- Color? backgroundColorEnd,
- Color? foregroundColor,
- Color iconColor = Colors.white,
- BoxShadow? shadow,
- Widget? sliderButtonContent,
- String? text,
- TextStyle? textStyle,
- BorderRadius? foregroundShape,
- BorderRadius? backgroundShape,
- bool stickToEnd = false,
- Curve? animationCurve,
A BASF-styled slider button
Implementation
const SliderButton({
required this.onConfirmation,
super.key,
this.height = 70,
this.width = 300,
this.backgroundColor = Colors.white,
this.backgroundColorEnd,
this.foregroundColor,
this.iconColor = Colors.white,
this.shadow,
this.sliderButtonContent,
this.text,
this.textStyle,
this.foregroundShape,
this.backgroundShape,
this.stickToEnd = false,
this.animationCurve,
}) : assert(
height >= 25 && width >= 250,
'''Height must be be greater or equal to 25, and width greater or equal to 250''',
);