Skip to main content

AnimatedBuilder

Type nameSupports Property AnimationsControlled by defaultMay contain associated actionLink
AnimatedBuilder✗✔️✗link
Attributes (outdated models)
final class AnimatedBuilderAttributes
implements DuitAttributes<AnimatedBuilderAttributes> {
final List<DuitTweenDescription> tweenDescriptions;
final String? persistentId;

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

Usage​

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
)