AnimatedAlign
| Название типа | Поддерживает анимации свойств | Контроллируемый по умолчанию | Может содержать связанное действие | Ссылка |
|---|---|---|---|---|
| AnimatedAlign | ✗ | ✔️ | ✗ | link |
Атрибуты (устаревшие модели)
final class AnimatedAlignAttributes extends ImplicitAnimatable
implements DuitAttributes<AnimatedAlignAttributes>, _AlignProps {
final AlignmentGeometry alignment;
final double? widthFactor, heightFactor;
const AnimatedAlignAttributes({
required this.alignment,
this.widthFactor,
this.heightFactor,
required super.duration,
super.curve,
super.onEnd,
});
Пример использования
- Go
AnimatedAlign(
&duit_attributes.AnimatedAlignAttributes{
Alignment: duit_alignment.Center,
ImplicitAnimatable: duit_animations.ImplicitAnimatable{
Duration: 1000,
},
},
"id",
nil, //child
)