Skip to content

Item

A versatile component that you can use to display any content.

Variants

Use ShadItem, ShadItem.outline and ShadItem.muted to change the visual style of the item.

Size

Use size: ShadItemSize.sm for a compact item.

Icon

Use ShadItemMedia.icon to display an icon inside a bordered, muted square.

Avatar

Pass a ShadAvatar (or any widget) to media.

Image

Use ShadItemMedia.image to display a clipped image from a src (network url, asset or file). The image covers the square by default, use fit to change it.

Group

Use ShadItemGroup to stack items in a list and ShadItemSeparator to separate them.

Use header (and footer) to display content spanning the full width of the item, above (or below) the item content.

Pass onPressed to make the whole item interactive. It becomes focusable, shows a hover background and a focus ring, and can be activated with Enter or Space.

Set link: true for items that navigate somewhere: they are announced as links instead of buttons and are activated with Enter only, like a link on the web.