Positioned
| Название типа | Поддерживает анимации свойств | Контроллируемый по умолчанию | Может содержать связанное действие | Ссылка |
|---|---|---|---|---|
| Positioned | ✔️ | ✗ | ✗ | link |
Атрибуты (устаревшие модели)
abstract interface class _PositionedProps {
abstract final double? left, top, right, bottom;
}
final class PositionedAttributes extends AnimatedPropertyOwner
implements DuitAttributes<PositionedAttributes>, _PositionedProps {
final double? left, top, right, bottom;
PositionedAttributes({
this.left,
this.top,
this.right,
this.bottom,
required super.parentBuilderId,
required super.affectedProperties,
});
Пример использования
- Go
Positioned(
&duit_attributes.PositionedAttributes{
Top: 10,
Bottom: 20,
Left: 30,
Right: 40,
},
"",
false,
nil, //child
)