CupertinoNavigationBar constructor
- Key? key,
- Widget? leading,
- bool automaticallyImplyLeading = true,
- bool automaticallyImplyMiddle = true,
- String? previousPageTitle,
- Widget? middle,
- Widget? trailing,
- Border? border = _kDefaultNavBarBorder,
- Color? backgroundColor,
- Brightness? brightness,
- EdgeInsetsDirectional? padding,
- bool transitionBetweenRoutes = true,
- Object heroTag = _defaultHeroTag,
Creates a navigation bar in the iOS style.
Implementation
const CupertinoNavigationBar({
super.key,
this.leading,
this.automaticallyImplyLeading = true,
this.automaticallyImplyMiddle = true,
this.previousPageTitle,
this.middle,
this.trailing,
this.border = _kDefaultNavBarBorder,
this.backgroundColor,
this.brightness,
this.padding,
this.transitionBetweenRoutes = true,
this.heroTag = _defaultHeroTag,
}) : assert(
!transitionBetweenRoutes || identical(heroTag, _defaultHeroTag),
'Cannot specify a heroTag override if this navigation bar does not '
'transition due to transitionBetweenRoutes = false.',
);