SliderView constructor

const SliderView({
  1. required List<Widget> imageWidgets,
  2. String? titleOne,
  3. String? titleTwo,
  4. List? questions,
  5. List? answerOptions,
  6. List<Widget> answerButtonBuilder(
    1. int index
    )?,
  7. Curve animationCurve = Curves.easeInOut,
  8. Duration animationDuration = const Duration(milliseconds: 300),
  9. Color primaryColor = Colors.blue,
  10. Color secondaryColor = Colors.blueAccent,
  11. double? paddingScale,
  12. double? fontScale,
  13. double? imageWidthScale,
  14. double? centerImageWidthScale,
  15. double? centerImageHeightScale,
  16. double? buttonPaddingScale,
  17. double? borderRadiusScale,
  18. double? nextImageOffsetScale,
  19. double? nextImageWidthScale,
  20. double? nextToLeftTop,
  21. double? nextToLeftBottom,
  22. double? nextToLeftOffset,
  23. double? leftTop,
  24. double? leftBottom,
  25. double? leftOffset,
  26. double? centerTop,
  27. double? centerBottom,
  28. double? rightTop,
  29. double? rightBottom,
  30. double? rightOffset,
  31. double? nextToRightTop,
  32. double? nextToRightBottom,
  33. double? nextToRightOffset,
  34. bool arrowShow = true,
  35. dynamic onIndexChanged(
    1. int
    )?,
  36. Key? key,
})

Implementation

const SliderView({
  required this.imageWidgets,
  this.titleOne,
  this.titleTwo,
  this.questions,
  this.answerOptions,
  this.answerButtonBuilder,
  this.animationCurve = Curves.easeInOut,
  this.animationDuration = const Duration(milliseconds: 300),
  this.primaryColor = Colors.blue,
  this.secondaryColor = Colors.blueAccent,
  this.paddingScale,
  this.fontScale,
  this.imageWidthScale,
  this.centerImageWidthScale,
  this.centerImageHeightScale,
  this.buttonPaddingScale,
  this.borderRadiusScale,
  this.nextImageOffsetScale,
  this.nextImageWidthScale,
  this.nextToLeftTop,
  this.nextToLeftBottom,
  this.nextToLeftOffset,
  this.leftTop,
  this.leftBottom,
  this.leftOffset,
  this.centerTop,
  this.centerBottom,
  this.rightTop,
  this.rightBottom,
  this.rightOffset,
  this.nextToRightTop,
  this.nextToRightBottom,
  this.nextToRightOffset,
  this.arrowShow = true,
  this.onIndexChanged,
  Key? key,
}) : super(key: key);