CupertinoNavigationBar constructor

const CupertinoNavigationBar({
  1. Key? key,
  2. Widget? leading,
  3. bool automaticallyImplyLeading = true,
  4. bool automaticallyImplyMiddle = true,
  5. String? previousPageTitle,
  6. Widget? middle,
  7. Widget? trailing,
  8. Border? border = _kDefaultNavBarBorder,
  9. Color? backgroundColor,
  10. bool automaticBackgroundVisibility = true,
  11. bool enableBackgroundFilterBlur = true,
  12. Brightness? brightness,
  13. EdgeInsetsDirectional? padding,
  14. bool transitionBetweenRoutes = true,
  15. 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.automaticBackgroundVisibility = true,
  this.enableBackgroundFilterBlur = true,
  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.',
     );