Перейти к основному содержимому

FlexibleSpaceBar

Название типаПоддерживает анимации свойствКонтроллируемый по умолчаниюМожет содержать связанное действиеСсылка
FlexibleSpaceBar✔️✗✗link
Атрибуты (устаревшие модели)
final class FlexibleSpaceBarAttributes extends AnimatedPropertyOwner
implements DuitAttributes<FlexibleSpaceBarAttributes> {
final NonChildWidget? title, background;
final EdgeInsetsGeometry? titlePadding;
final CollapseMode collapseMode;
final List<StretchMode> stretchModes;
final bool? centerTitle;
final double expandedTitleScale;

const FlexibleSpaceBarAttributes({
required this.collapseMode,
required this.stretchModes,
required this.expandedTitleScale,
this.titlePadding,
this.centerTitle,
this.title,
this.background,
required super.parentBuilderId,
required super.affectedProperties,
});

Пример использования​

FlexibleSpaceBar(
&duit_attributes.FlexibleSpaceBarAttributes{
CollapseMode: duit_collapse_mode.Parallax,
StretchModes: []duit_stretch_mode.StretchMode{duit_stretch_mode.ZoomBackground},
ExpandedTitleScale: 1.5,
CenterTitle: true,
Title: "My App",
},
"id",
false,
//background,
)