CupertinoSliverNavigationBar constructor
- Key? key,
- Widget? largeTitle,
- Widget? leading,
- bool automaticallyImplyLeading = true,
- bool automaticallyImplyTitle = true,
- bool alwaysShowMiddle = true,
- String? previousPageTitle,
- Widget? middle,
- Widget? trailing,
- Border? border = _kDefaultNavBarBorder,
- Color? backgroundColor,
- Brightness? brightness,
- EdgeInsetsDirectional? padding,
- bool transitionBetweenRoutes = true,
- Object heroTag = _defaultHeroTag,
- bool stretch = false,
Creates a navigation bar for scrolling lists.
If automaticallyImplyTitle is false, then the largeTitle argument is required.
Implementation
const CupertinoSliverNavigationBar({
super.key,
this.largeTitle,
this.leading,
this.automaticallyImplyLeading = true,
this.automaticallyImplyTitle = true,
this.alwaysShowMiddle = true,
this.previousPageTitle,
this.middle,
this.trailing,
this.border = _kDefaultNavBarBorder,
this.backgroundColor,
this.brightness,
this.padding,
this.transitionBetweenRoutes = true,
this.heroTag = _defaultHeroTag,
this.stretch = false,
}) : assert(
automaticallyImplyTitle || largeTitle != null,
'No largeTitle has been provided but automaticallyImplyTitle is also '
'false. Either provide a largeTitle or set automaticallyImplyTitle to '
'true.',
);