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

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,
});

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

Positioned(
&duit_attributes.PositionedAttributes{
Top: 10,
Bottom: 20,
Left: 30,
Right: 40,
},
"",
false,
nil, //child
)