defaultStepperBuilder function
Implementation
Widget defaultStepperBuilder(
BuildContext context, int pageCount, int currentPage) {
if (pageCount > 1) {
return DotStepper(
// direction: Axis.vertical,
dotCount: pageCount,
dotRadius: 12,
activeStep: currentPage,
shape: Shape.circle,
spacing: 10,
indicator: Indicator.shift,
onDotTapped: (tappedDotIndex) async {
SurveyWidgetState.of(context).toPage(tappedDotIndex);
},
indicatorDecoration: IndicatorDecoration(
color: Theme.of(context).primaryColor,
strokeColor: Theme.of(context).primaryColor),
);
}
return Container();
}