NavigationHubLayout.journey constructor
NavigationHubLayout.journey({
- Color? backgroundColor,
- Gradient? backgroundGradient,
- bool? showProgressIndicator = true,
- ProgressIndicatorPosition? progressIndicatorPosition = ProgressIndicatorPosition.top,
- EdgeInsets? progressIndicatorPadding = const EdgeInsets.symmetric(horizontal: 16.0, vertical: 8.0),
- JourneyButtonLayout? buttonLayout = JourneyButtonLayout.spaceBetween,
- Duration? animationDuration = const Duration(milliseconds: 300),
- bool? useSafeArea = true,
- EdgeInsets? buttonPadding = const EdgeInsets.symmetric(horizontal: 16.0, vertical: 16.0),
- JourneyProgressStyle? progressStyle = const JourneyProgressStyle.linear(),
- dynamic onComplete()?,
- 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";
}