CupertinoNavigationBar constructor
- Key? key,
 - Widget? leading,
 - bool automaticallyImplyLeading = true,
 - bool automaticallyImplyMiddle = true,
 - String? previousPageTitle,
 - Widget? middle,
 - 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 centered middle title.
Similar to the collapsed state of CupertinoSliverNavigationBar, which can dynamically change size in response to scrolling.
See also:
- CupertinoNavigationBar.large, which creates a static iOS style navigation bar with a largeTitle, similar to the expanded state of CupertinoSliverNavigationBar.
 
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.automaticBackgroundVisibility = true,
  this.enableBackgroundFilterBlur = true,
  this.brightness,
  this.padding,
  this.transitionBetweenRoutes = true,
  this.heroTag = _defaultHeroTag,
  this.bottom,
}) : largeTitle = null,
     assert(
       !transitionBetweenRoutes || identical(heroTag, _defaultHeroTag),
       'Cannot specify a heroTag override if this navigation bar does not '
       'transition due to transitionBetweenRoutes = false.',
     );