Presentation card with a title, media, content and actions.
TxCard
| Parameter | Type | Default | Meaning |
|---|---|---|---|
| title | String? | null | View title. |
| subtitle | String? | null | Additional subtitle. |
| imageUrl | String? | null | Card image URL. |
| imageAlt | String | '' | Image alternative text. |
| header | Widget? | null | Custom header. |
| media | Widget? | null | Custom media region. |
| child | Widget? | null | Content or target widget. |
| actions | List<Widget> | const [] | Dialog or card actions. |
| footer | Widget? | null | Custom footer. |
| variant | TxCardVariant | TxCardVariant.outlined | Card appearance variant. |
| loading | bool | false | Shows the loading state. |
| semanticLabel | String? | null | Accessible card name. |
import 'package:flutter/material.dart';
import 'package:tecexpress/tecexpress.dart';
Widget example() {
return const TxCard(title: 'Project', subtitle: 'Active', child: Text('Hello'));
}