SliverAnimatedOpacity
| Название типа | Поддерживает анимации свойств | Контроллируемый по умолчанию | Может содержать связанное действие | Ссылка |
|---|---|---|---|---|
| SliverAnimatedOpacity | ✗ | ✔️ | ✗ | link |
Атрибуты (устаревшие модели)
final class SliverAnimatedOpacityAttributes extends ImplicitAnimatable
implements DuitAttributes<SliverAnimatedOpacityAttributes>, DuitSliverProps {
final double opacity;
final bool needsBoxAdapter;
const SliverAnimatedOpacityAttributes({
required this.opacity,
required this.needsBoxAdapter,
required super.duration,
required super.curve,
required super.onEnd,
});
Пример использования
- Go
SliverAnimatedOpacity(
&duit_attributes.SliverAnimatedOpacityAttributes{
Opacity: 0.5,
NeedsBoxAdapter: false,
Duration: 300 * time.Millisecond,
Curve: duit_animations.EaseInOut,
},
"id",
false,
//child,
)