Table
Present semantic Flutter row-and-column data with density, striping, and horizontal overflow.
Present semantic row-and-column data with density, striping, and horizontal overflow.
Contract
| Axis | Contract |
|---|---|
| Density | compact, comfortable, spacious |
| Rows | Optional striping and footer |
Install
Add the package, then import its public library.
flutter pub add tinyrack_uiimport 'package:tinyrack_ui/tinyrack_ui.dart';Playground
Usage
import 'package:material_ui/material_ui.dart';
import 'package:tinyrack_ui/tinyrack_ui.dart';
const TRTable(
columns: [TRTableColumn(label: Text('Rack'))],
rows: [TRTableRow(cells: [Text('Rack A')])],
)Examples
Compact status data permalink
Use compact density and striping for scan-heavy operational data.
API
TRTable properties
| Prop | Type / default | Purpose |
|---|---|---|
columns / rows | List · required | Defines headers and ordered cells. |
density | TRTableDensity · comfortable | Sets row spacing. |
striped | bool · false | Alternates body row surfaces. |
caption / footer | Widget? / TRTableFooter? | Adds a caption and summary row. |