SliderView constructor
const
SliderView({
- required List<
Widget> imageWidgets, - String? titleOne,
- String? titleTwo,
- List? questions,
- List? answerOptions,
- List<
Widget> answerButtonBuilder(- int index
- Curve animationCurve = Curves.easeInOut,
- Duration animationDuration = const Duration(milliseconds: 300),
- Color primaryColor = Colors.blue,
- Color secondaryColor = Colors.blueAccent,
- double? paddingScale,
- double? fontScale,
- double? imageWidthScale,
- double? centerImageWidthScale,
- double? centerImageHeightScale,
- double? buttonPaddingScale,
- double? borderRadiusScale,
- double? nextImageOffsetScale,
- double? nextImageWidthScale,
- double? nextToLeftTop,
- double? nextToLeftBottom,
- double? nextToLeftOffset,
- double? leftTop,
- double? leftBottom,
- double? leftOffset,
- double? centerTop,
- double? centerBottom,
- double? rightTop,
- double? rightBottom,
- double? rightOffset,
- double? nextToRightTop,
- double? nextToRightBottom,
- double? nextToRightOffset,
- bool arrowShow = true,
- dynamic onIndexChanged()?,
- 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);