SliverNewGradientAppBar constructor
const
SliverNewGradientAppBar({
- Key? key,
- Widget? leading,
- bool automaticallyImplyLeading = true,
- Widget? title,
- List<
Widget> ? actions, - Widget? flexibleSpace,
- PreferredSizeWidget? bottom,
- double? elevation,
- bool forceElevated = false,
- Gradient? gradient,
- Brightness? brightness,
- IconThemeData? iconTheme,
- IconThemeData? actionsIconTheme,
- TextTheme? textTheme,
- bool primary = true,
- bool? centerTitle,
- double titleSpacing = NavigationToolbar.kMiddleSpacing,
- double? expandedHeight,
- bool floating = false,
- bool pinned = false,
- bool snap = false,
- ShapeBorder? shape,
Creates a material design app bar that can be placed in a CustomScrollView.
The arguments forceElevated, primary, floating, pinned, snap and automaticallyImplyLeading must not be null.
Implementation
const SliverNewGradientAppBar({
Key? key,
this.leading,
this.automaticallyImplyLeading = true,
this.title,
this.actions,
this.flexibleSpace,
this.bottom,
this.elevation,
this.forceElevated = false,
this.gradient,
this.brightness,
this.iconTheme,
this.actionsIconTheme,
this.textTheme,
this.primary = true,
this.centerTitle,
this.titleSpacing = NavigationToolbar.kMiddleSpacing,
this.expandedHeight,
this.floating = false,
this.pinned = false,
this.snap = false,
this.shape,
}) : assert(floating || !snap,
'The "snap" argument only makes sense for floating app bars.'),
super(key: key);