nicetables library
Beautiful, feature-complete data tables for Flutter.
Start with NiceTable (your rows, your columns) or NiceAsyncTable
(a fetch callback for server-side paging). Columns are typed
NiceColumns whose single value callback drives sorting, search,
filtering, export and the responsive card layout. All state lives in
an optional NiceTableController; all looks live in NiceTableTheme,
derived from your app theme by default; all text the table draws itself
lives in NiceTableStrings, English by default.
Classes
- NiceAction
- One action in a NiceRowActions menu.
-
NiceAsyncTable<
T> - A NiceTable driven by an async fetch: it calls fetch on first build and whenever the query changes, and shows skeleton, progress, error and retry states for you.
- NiceAvatar
- A circular avatar that shows an image when available and otherwise the initials of name on a hue derived from the name, so the same person always gets the same colour.
- NiceAvatarCell
- An avatar beside a name with an optional muted subtitle, the classic "person" cell.
- NiceCellContext
- Information about the row a cell is being built for.
-
NiceColumn<
T> -
Describes one column of a
NiceTable: how to read a value from a row, how to show it, and how it sorts, searches and exports. - NiceColumnWidth
- How a column shares the table's width.
- NiceCopyableText
- Text with a copy button that appears on hover (always visible on touch screens) and copies copyValue to the clipboard.
- NiceCsv
- Turns rows and columns into CSV text.
- NiceEmptyState
- Shown when a table has no rows to display.
- NiceErrorState
- Shown when loading failed.
-
NiceFilter<
T> - A filter applied to the rows of a table, keyed by a column id (or any string for filters that are not tied to a column).
- NiceFilterOption
- One choice in a column's filter menu.
- NiceFormat
- Small, dependency-free formatters used by the default cells.
- NiceMonoText
- Monospace text with tabular figures for ids, hashes, serials and timestamps.
-
NicePage<
T> - One page of results from a server-side source.
- NiceProgressCell
- A slim progress bar with a percentage label.
-
NiceQuery<
T> - An immutable snapshot of everything that determines which rows are visible: sort, search, filters and the current page.
- NiceRowActions
- Row actions: the first inlineCount actions as icon buttons and the rest behind a three-dot menu.
- NiceRowStyle
-
Per-row colour overrides returned by
NiceTable.rowStyle. - NiceSkeletonRows
- Pulsing placeholder rows shown while the first page loads.
- NiceSort
- The active sort: which column and in which direction.
- NiceStatusChip
- A soft, pill-shaped status chip: a coloured dot and label on a tinted background, coloured by the theme's NiceStatusPalette.
- NiceStatusColors
- Foreground and soft background pair for one NiceStatus.
- NiceStatusPalette
- Colours for every NiceStatus.
- NiceStatusValue
- A status together with the label to display for it.
-
NiceTable<
T> - A beautiful, feature-complete data table.
-
NiceTableController<
T> - Owns everything the user can change about a table: sort, search, filters, page, selection, expansion, column visibility and widths, row density and keyboard focus.
-
NiceTableResult<
T> - The outcome of client-side processing: the rows of the current page and how many rows matched in total.
- NiceTableStrings
- Every piece of text a table draws on its own: tooltips, the footer, the empty and error states, the search placeholder. English by default.
- NiceTableStringsScope
-
Provides NiceTableStrings to every table (and every nicetables cell)
in child. A table's own
stringsargument wins over the scope. - NiceTableTheme
-
Every colour, text style and spacing a
NiceTableuses. - NiceTableThemeScope
- Overrides the NiceTableTheme for every table in child.
- NiceTrendCell
- A number with a coloured up/down delta beside it.
Enums
- NiceAlign
- Horizontal alignment of a cell's content.
- NiceDensity
- Vertical rhythm of the table: how tall each row is and how much padding cells get.
- NiceProcessing
- Where sorting, searching, filtering and paging happen.
- NiceSelectionMode
- Whether and how rows can be selected.
- NiceSortDirection
- Direction of a column sort.
- NiceStatus
-
Semantic status used by
NiceStatusChipandNiceColumn.status.
Properties
- niceSmallIconButtonStyle → ButtonStyle
-
A 32 px icon button style with no minimum tap target, so buttons fit
inside every row density (Material's default 48 px minimum overflows
40 px compact rows).
final
Typedefs
-
NiceBulkActionsBuilder<
T> = List< Widget> Function(BuildContext context, List<T> selectedRows) - Builds bulk action widgets for the current selection.
-
NiceCardBuilder<
T> = Widget Function(BuildContext context, T row) -
Builds a whole card for
rowin the compact layout. -
NiceCellBuilder<
T> = Widget Function(BuildContext context, T row, NiceCellContext cell) -
Builds a cell widget for
row. -
NiceExpandedBuilder<
T> = Widget Function(BuildContext context, T row) - Builds the detail panel under an expanded row.
-
NiceFetch<
T> = Future< NicePage< Function(NiceQuery<T> >T> query) - Fetches a page for a query.