SafeArea
| Название типа | Поддерживает анимации свойств | Контроллируемый по умолчанию | Может содержать связанное действие | Ссылка |
|---|---|---|---|---|
| SafeArea | ✔️ | ✗ | ✗ | link |
Атрибуты (устаревшие модели)
final class SafeAreaAttributes extends AnimatedPropertyOwner
implements DuitAttributes<SafeAreaAttributes> {
final bool left, top, right, bottom;
final EdgeInsets? minimum;
final bool? maintainBottomViewPadding;
SafeAreaAttributes({
required this.left,
required this.top,
required this.right,
required this.bottom,
this.minimum,
this.maintainBottomViewPadding,
required super.affectedProperties,
required super.parentBuilderId,
});
Пример использования
- Go
SafeArea(
&duit_attributes.SafeAreaAttributes[duit_edge_insets.EdgeInsetsAll]{
Top: duit_utils.BoolPtr(true),
Bottom: duit_utils.BoolPtr(false),
},
"id",
false,
nil, //child
)