buildJourneyPage method

Widget buildJourneyPage({
  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. Color? backgroundColor,
  11. Widget? appBar,
  12. 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,
      ),
    ),
  );
}