FlexibleSpaceBar constructor
- Key? key,
- Widget? title,
- Widget? background,
- bool? centerTitle,
- EdgeInsetsGeometry? titlePadding,
- CollapseMode collapseMode = CollapseMode.parallax,
- List<
StretchMode> stretchModes = const <StretchMode>[StretchMode.zoomBackground], - double expandedTitleScale = 1.5,
Creates a flexible space bar.
Most commonly used in the AppBar.flexibleSpace field.
Implementation
const FlexibleSpaceBar({
super.key,
this.title,
this.background,
this.centerTitle,
this.titlePadding,
this.collapseMode = CollapseMode.parallax,
this.stretchModes = const <StretchMode>[StretchMode.zoomBackground],
this.expandedTitleScale = 1.5,
}) : assert(expandedTitleScale >= 1);