NavigationHubLayout.journey constructor

NavigationHubLayout.journey({
  1. Color? backgroundColor,
  2. Gradient? backgroundGradient,
  3. bool? showProgressIndicator = true,
  4. ProgressIndicatorPosition? progressIndicatorPosition = ProgressIndicatorPosition.top,
  5. EdgeInsets? progressIndicatorPadding = const EdgeInsets.symmetric(horizontal: 16.0, vertical: 8.0),
  6. JourneyButtonLayout? buttonLayout = JourneyButtonLayout.spaceBetween,
  7. Duration? animationDuration = const Duration(milliseconds: 300),
  8. bool? useSafeArea = true,
  9. EdgeInsets? buttonPadding = const EdgeInsets.symmetric(horizontal: 16.0, vertical: 16.0),
  10. JourneyProgressStyle? progressStyle = const JourneyProgressStyle.linear(),
  11. dynamic onComplete()?,
  12. JourneyButtonStyle? buttonStyle,
})

Create a journey navigation layout

Implementation

NavigationHubLayout.journey({
  this.backgroundColor,
  this.backgroundGradient,
  this.showProgressIndicator = true,
  this.progressIndicatorPosition = ProgressIndicatorPosition.top,
  this.progressIndicatorPadding =
      const EdgeInsets.symmetric(horizontal: 16.0, vertical: 8.0),
  this.buttonLayout = JourneyButtonLayout.spaceBetween,
  this.animationDuration = const Duration(milliseconds: 300),
  this.useSafeArea = true,
  this.buttonPadding =
      const EdgeInsets.symmetric(horizontal: 16.0, vertical: 16.0),
  this.progressStyle = const JourneyProgressStyle.linear(),
  this.onComplete,
  this.buttonStyle,
}) {
  kind = "journey";
}