defaultStepperBuilder function

Widget defaultStepperBuilder(
  1. BuildContext context,
  2. int pageCount,
  3. int currentPage
)

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();
}