Card
A Card is a material design widget in Flutter that displays a piece of content and can provide a visual container for related information. It has a built-in elevation to give it a slight shadow and can be customized with different colors and shapes.
Example:
Card(
child: ListTile(
leading: Icon(Icons.album),
title: Text('Card Title'),
subtitle: Text('Card Subtitle'),
),
)
This will display a card with an album icon, a title, and a subtitle.
Attributes
color: Defines the background color of the card.
elevation: Defines the elevation (drop-shadow) of the card.
shape: Defines the shape of the card (e.g. rounded corners).
borderOnForeground: Whether to paint the border on top of the foreground or background.
margin: Defines the margin around the card.