SlideAction constructor

const SlideAction({
  1. Key? key,
  2. double sliderButtonIconSize = 24,
  3. double sliderButtonIconPadding = 16,
  4. double sliderButtonYOffset = 0,
  5. bool sliderRotate = true,
  6. bool enabled = true,
  7. double height = 70,
  8. Color? textColor,
  9. Color? innerColor,
  10. Color? outerColor,
  11. double borderRadius = 52,
  12. double elevation = 6,
  13. Duration animationDuration = const Duration(milliseconds: 300),
  14. bool reversed = false,
  15. Alignment alignment = Alignment.center,
  16. Widget? submittedIcon,
  17. Future? onSubmit()?,
  18. Widget? child,
  19. String? text,
  20. TextStyle? textStyle,
  21. Widget? sliderButtonIcon,
})

Create a new instance of the widget

Implementation

const SlideAction({
  Key? key,
  this.sliderButtonIconSize = 24,
  this.sliderButtonIconPadding = 16,
  this.sliderButtonYOffset = 0,
  this.sliderRotate = true,
  this.enabled = true,
  this.height = 70,
  this.textColor,
  this.innerColor,
  this.outerColor,
  this.borderRadius = 52,
  this.elevation = 6,
  this.animationDuration = const Duration(milliseconds: 300),
  this.reversed = false,
  this.alignment = Alignment.center,
  this.submittedIcon,
  this.onSubmit,
  this.child,
  this.text,
  this.textStyle,
  this.sliderButtonIcon,
}) : super(key: key);