ConstrainedBox
| Название типа | Поддерживает анимации свойств | Контроллируемый по умолчанию | Может содержать связанное действие | Ссылка |
|---|---|---|---|---|
| ConstrainedBox | ✔️ | ✗ | ✗ | link |
Атрибуты (устаревшие модели)
final class ConstrainedBoxAttributes extends AnimatedPropertyOwner
implements DuitAttributes<ConstrainedBoxAttributes> {
final BoxConstraints constraints;
ConstrainedBoxAttributes({
required super.parentBuilderId,
required super.affectedProperties,
required this.constraints,
});
Пример использования
- Go
ConstrainedBox(
&duit_attributes.ConstrainedBoxAttributes{
MinWidth: 156,
MaxWidth: 300,
MinHeight: 60,
MaxHeight: 120,
},
"id",
false,
nil, //child
)