buildJourneyContent method

Widget buildJourneyContent({
  1. required Widget content,
  2. Widget? nextButton,
  3. Widget? backButton,
  4. ProgressIndicatorPosition progressPosition = ProgressIndicatorPosition.top,
  5. JourneyProgressStyle? progressStyle,
  6. EdgeInsetsGeometry contentPadding = const EdgeInsets.all(16.0),
  7. EdgeInsets? progressIndicatorPadding,
  8. Widget? header,
  9. Widget? footer,
  10. CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center,
})

Build a content widget with optional journey progress indicators and navigation buttons

Implementation

Widget buildJourneyContent({
  required Widget content,
  Widget? nextButton,
  Widget? backButton,
  ProgressIndicatorPosition progressPosition = ProgressIndicatorPosition.top,
  JourneyProgressStyle? progressStyle,
  EdgeInsetsGeometry contentPadding = const EdgeInsets.all(16.0),
  EdgeInsets? progressIndicatorPadding,
  Widget? header,
  Widget? footer,
  CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center,
}) {
  return JourneyContent(
    content: content,
    currentStep: currentStep,
    totalSteps: totalSteps,
    isFirstStep: isFirstStep,
    isLastStep: isLastStep,
    nextButton: nextButton,
    backButton: backButton,
    showProgress: progressStyle != null ? true : false,
    progressIndicatorPosition: progressPosition,
    progressStyle: progressStyle ?? const JourneyProgressStyle.linear(),
    progressIndicatorPadding: progressIndicatorPadding,
    contentPadding: contentPadding,
    header: header,
    footer: footer,
    crossAxisAlignment: crossAxisAlignment,
  );
}