buildJourneyPage method
Widget
buildJourneyPage({
- required Widget content,
- Widget? nextButton,
- Widget? backButton,
- ProgressIndicatorPosition progressPosition = ProgressIndicatorPosition.top,
- JourneyProgressStyle? progressStyle,
- EdgeInsetsGeometry contentPadding = const EdgeInsets.all(16.0),
- EdgeInsets? progressIndicatorPadding,
- Widget? header,
- Color? backgroundColor,
- Widget? appBar,
- CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center,
Build a full-screen journey page with customizable elements
Implementation
Widget buildJourneyPage({
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,
Color? backgroundColor,
Widget? appBar,
CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center,
}) {
return Scaffold(
backgroundColor: backgroundColor,
appBar: appBar is PreferredSizeWidget ? appBar : null,
body: SafeArea(
child: buildJourneyContent(
content: content,
nextButton: nextButton,
backButton: backButton,
progressPosition: progressPosition,
progressStyle: progressStyle,
progressIndicatorPadding: progressIndicatorPadding,
contentPadding: contentPadding,
header: header,
footer: footer,
crossAxisAlignment: crossAxisAlignment,
),
),
);
}