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

Opacity

Название типаПоддерживает анимации свойствКонтроллируемый по умолчаниюМожет содержать связанное действиеСсылка
Opacity✔️✗✗link
Атрибуты (устаревшие модели)
abstract interface class _OpacityProps {
abstract final double opacity;
}

final class OpacityAttributes extends AnimatedPropertyOwner
implements _OpacityProps, DuitAttributes<OpacityAttributes> {

final double opacity;

const OpacityAttributes({
required this.opacity,
required super.parentBuilderId,
required super.affectedProperties,
});

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

Opacity(
&duit_attributes.OpacityAttributes{
Opacity: 0.85,
},
"",
false,
nil, //child
)