CupertinoNavigationBar.large constructor

const CupertinoNavigationBar.large({
  1. Key? key,
  2. Widget? largeTitle,
  3. Widget? leading,
  4. bool automaticallyImplyLeading = true,
  5. bool automaticallyImplyTitle = true,
  6. String? previousPageTitle,
  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,
  16. 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:

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.',
     );