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,
});
Пример использования
- Go
Opacity(
&duit_attributes.OpacityAttributes{
Opacity: 0.85,
},
"",
false,
nil, //child
)