SliderButton constructor

const SliderButton({
  1. required VoidCallback onConfirmation,
  2. Key? key,
  3. double height = 70,
  4. double width = 300,
  5. Color backgroundColor = Colors.white,
  6. Color? backgroundColorEnd,
  7. Color? foregroundColor,
  8. Color iconColor = Colors.white,
  9. BoxShadow? shadow,
  10. Widget? sliderButtonContent,
  11. String? text,
  12. TextStyle? textStyle,
  13. BorderRadius? foregroundShape,
  14. BorderRadius? backgroundShape,
  15. bool stickToEnd = false,
  16. 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''',
      );