OudsCardItem class

OUDS Card Item Design Guidelines

Reference design version : 1.0.0

A card-formatted variant of OudsListItem.

OudsCardItem keeps the rich content model of list item — overline, label, extra label, description, leading and trailing slots — while applying the card decoration defaults. It is ideal for read-only summaries, grouped content and navigable cards with stronger visual emphasis.

The component keeps the default list-item density and reuses the same horizontal padding as OudsListItem.

Usage Example

OudsCardItem(
  label: 'Plan 200 Go',
  overline: 'Mobile',
  extraLabel: 'Sans engagement',
  description: '5G en France et en Europe',
  leading: OudsListItemLeadingIcon(Positive()),
)

OudsCardItem(
  label: 'Voir le détail',
  description: 'Ouvre une nouvelle page',
  onTap: () {},
)
Inheritance

Constructors

OudsCardItem({Key? key, required String label, OudsListItemContentAlignment contentAlignment = OudsCardItemDefaults.contentAlignment, OudsListItemDecoration decoration = OudsCardItemDefaults.decoration, String? overline, String? extraLabel, String? description, OudsListItemLeading? leading, OudsListItemTrailing? trailing, String? helperText, bool boldLabel = false, bool enable = true, VoidCallback? onTap, OudsListItemIndicator indicator = OudsCardItemDefaults.indicator})
Creates an OUDS card item.
const

Properties

boldLabel bool
Whether label is rendered in bold. Defaults to false.
final
contentAlignment OudsListItemContentAlignment
Vertical alignment of all slots.
final
decoration → OudsListItemDecoration
Visual decoration of the card. Defaults to a persistent background.
final
description String?
Optional secondary text displayed below label / extraLabel.
final
enable bool
Whether the item is interactive. Defaults to true.
final
extraLabel String?
Optional strong accompanying label displayed between label and description.
final
hashCode int
The hash code for this object.
no setterinherited
helperText String?
Optional helper text displayed below the row.
final
indicator → OudsListItemIndicator
Navigation indicator shown when onTap is provided.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
label String
The mandatory main label displayed in the center column.
final
leading OudsListItemLeading?
Optional content at the start of the row.
final
onTap VoidCallback?
Callback invoked when the card is tapped.
final
overline String?
Optional text displayed above label in a smaller, muted style.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
trailing OudsListItemTrailing?
Optional content at the end of the row.
final

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited