| Name | Role | Status |
|---|---|---|
| Alex | Admin | Active |
| Sam | Editor | Pending |
| Rae | Viewer | Active |
DataTable(
items: const [
_DemoUser(name: 'Alex', role: 'Admin', status: 'Active'),
_DemoUser(name: 'Sam', role: 'Editor', status: 'Pending'),
_DemoUser(name: 'Rae', role: 'Viewer', status: 'Active'),
],
columns: [
DataColumn(header: 'Name', builder: (_DemoUser user) => Text(user.name)),
DataColumn(header: 'Role', builder: (_DemoUser user) => Text(user.role)),
DataColumn(header: 'Status', builder: (_DemoUser user) => Text(user.status)),
],
)
DataTable#
Use data tables for structured records where columns, rows, and cell renderers stay declarative.
The live preview and code sample above use the neutral package:arcane_jaspr/arcane_jaspr.dart
API. The selected stylesheet owns spacing, density, radius, color, and interaction styling, so the same app code can render differently under Shadcn or Neon.
Source: lib/component/view/data_table.dart
See the Component Catalog for the full exported surface and source mapping.