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

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,
});

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

SafeArea(
&duit_attributes.SafeAreaAttributes[duit_edge_insets.EdgeInsetsAll]{
Top: duit_utils.BoolPtr(true),
Bottom: duit_utils.BoolPtr(false),
},
"id",
false,
nil, //child
)