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

AnimatedBuilder

Название типаПоддерживает анимации свойствКонтроллируемый по умолчаниюМожет содержать связанное действиеСсылка
AnimatedBuilder✗✔️✗link
Атрибуты (устаревшие модели)
final class AnimatedBuilderAttributes
implements DuitAttributes<AnimatedBuilderAttributes> {
final List<DuitTweenDescription> tweenDescriptions;
final String? persistentId;

AnimatedBuilderAttributes({
this.tweenDescriptions = const [],
this.persistentId,
});

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

AnimatedBuilder(
&duit_attributes.AnimatedBuilderAttributes{
PersistentId: "1", //override it for use builder inside component layout
Tweens: []any{
duit_animations.Tween(
"height", //animated property name
0.0, //begin
100.0, //end
3000, //duratuin
duit_animations.OnEnter, //trigger
duit_animations.Forward, //method
false, //repeat
"", //linear curve by default
),
},
},
"", //id
nil, //child
)