buildJourneyContent method
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,
- 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,
);
}