Skip to content

Card

Container component with elevation, borders, and flexible content layout.

Installation

bash
flutter_studio add card
bash
flutter pub add flutter_studio

Usage

dart
CustomCard(
  child: Padding(
    padding: EdgeInsets.all(16),
    child: Text('Card content'),
  ),
)

With Header

dart
CustomCard(
  title: 'Card Title',
  subtitle: 'Optional subtitle',
  child: Text('Content'),
)

API Reference

Properties

PropertyTypeDefaultDescription
childWidgetrequiredMain content
titleString?nullCard header title