CupertinoNavigationBar.large constructor
- Key? key,
- Widget? largeTitle,
- Widget? leading,
- bool automaticallyImplyLeading = true,
- bool automaticallyImplyTitle = true,
- String? previousPageTitle,
- Widget? trailing,
- Border? border = _kDefaultNavBarBorder,
- Color? backgroundColor,
- bool automaticBackgroundVisibility = true,
- bool enableBackgroundFilterBlur = true,
- Brightness? brightness,
- EdgeInsetsDirectional? padding,
- bool transitionBetweenRoutes = true,
- Object heroTag = _defaultHeroTag,
- PreferredSizeWidget? bottom,
Creates a static iOS style navigation bar, with a left aligned largeTitle
.
Similar to the expanded state of CupertinoSliverNavigationBar, which can dynamically change size in response to scrolling.
See also:
- CupertinoNavigationBar's base constructor, which creates a static iOS style navigation bar with middle, similar to the collapsed state of CupertinoSliverNavigationBar.
Implementation
const CupertinoNavigationBar.large({
super.key,
this.largeTitle,
this.leading,
this.automaticallyImplyLeading = true,
bool automaticallyImplyTitle = true,
this.previousPageTitle,
this.trailing,
this.border = _kDefaultNavBarBorder,
this.backgroundColor,
this.automaticBackgroundVisibility = true,
this.enableBackgroundFilterBlur = true,
this.brightness,
this.padding,
this.transitionBetweenRoutes = true,
this.heroTag = _defaultHeroTag,
this.bottom,
}) : middle = null,
automaticallyImplyMiddle = automaticallyImplyTitle,
assert(
!transitionBetweenRoutes || identical(heroTag, _defaultHeroTag),
'Cannot specify a heroTag override if this navigation bar does not '
'transition due to transitionBetweenRoutes = false.',
);