AppbarGadient constructor
AppbarGadient(- {Key key,
- Color backgroundColor,
- Widget leading,
- bool automaticallyImplyLeading = true,
- Widget title,
- List<Widget> actions,
- Gradient gradient,
- PreferredSizeWidget bottom,
- double elevation,
- ShapeBorder shape,
- Brightness brightness,
- IconThemeData iconTheme,
- IconThemeData actionsIconTheme,
- TextTheme textTheme,
- bool primary = true,
- bool centerTitle,
- double titleSpacing = NavigationToolbar.kMiddleSpacing,
- double toolbarOpacity = 1.0,
- double bottomOpacity = 1.0,
- DecorationImage image}
)
Implementation
AppbarGadient(
{Key key,
this.backgroundColor,
this.leading,
this.automaticallyImplyLeading = true,
this.title,
this.actions,
this.gradient,
this.bottom,
this.elevation,
this.shape,
this.brightness,
this.iconTheme,
this.actionsIconTheme,
this.textTheme,
this.primary = true,
this.centerTitle,
this.titleSpacing = NavigationToolbar.kMiddleSpacing,
this.toolbarOpacity = 1.0,
this.bottomOpacity = 1.0,
this.image})
: assert(automaticallyImplyLeading != null),
assert(elevation == null || elevation >= 0.0),
assert(primary != null),
assert(titleSpacing != null),
assert(toolbarOpacity != null),
assert(bottomOpacity != null),
preferredSize = Size.fromHeight(
kToolbarHeight + (bottom?.preferredSize?.height ?? 0.0)),
super(key: key);