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

Card

Название типаПоддерживает анимации свойствКонтроллируемый по умолчаниюМожет содержать связанное действиеСсылка
Card✔️✗✗link
Атрибуты (устаревшие модели)
final class CardAttributes extends AnimatedPropertyOwner
implements DuitAttributes<CardAttributes> {
final Color? color, shadowColor;
final double? elevation;
final ShapeBorder? shape;
final EdgeInsetsGeometry? margin;
final Clip? clipBehavior;
final bool semanticContainer, borderOnForeground;

const CardAttributes({
this.color,
this.shadowColor,
this.elevation,
this.shape,
this.margin,
this.clipBehavior,
this.semanticContainer = true,
this.borderOnForeground = true,
required super.parentBuilderId,
required super.affectedProperties,
});

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

Card(
&duit_attributes.CardAttributes[duit_color.ColorString, duit_edge_insets.EdgeInsetsAll, duit_decoration.BeveledRectangleBorder[duit_color.ColorString]]{
ShadowColor: duit_color.ColorString("black"),
Shape: &duit_decoration.BeveledRectangleBorder[duit_color.ColorString]{
Side: &duit_decoration.BorderSide[duit_color.ColorString]{
Color: "#DCDCDC",
Width: 3,
},
},
},
"id",
false,
nil, //child
)