better_data_table 0.2.0 copy "better_data_table: ^0.2.0" to clipboard
better_data_table: ^0.2.0 copied to clipboard

A highly customizable Flutter table widget with sorting, selection, expandable rows, collapsible groups, column visibility, striped rows, and a comprehensive theming system.

0.2.0 #

New features:

  • Pointer cursor on clickable rows — rows with any tap handler (onRowTap, onRowDoubleTap, onRowLongPress, onRowSecondaryTap, BetterDataTableRow.onTap) automatically show SystemMouseCursors.click on desktop and web
  • Fully customizable icons — six new Widget? fields on BetterDataTableTheme let you replace every icon with any widget:
    • sortAscendingIcon / sortDescendingIcon — sort direction indicators in column headers
    • rowExpandIcon / rowCollapseIcon — expand/collapse toggle on hierarchical and expandable rows
    • groupExpandIcon / groupCollapseIcon — chevron in collapsible group headers
  • No empty box for non-expandable rows — when the expand column is present but a row has no children and no expandable content, the cell now renders as SizedBox.shrink() instead of a padded empty container

0.1.0 #

Initial public release.

New features:

  • BetterDataTableColumn.visible — hide/show individual columns at runtime
  • BetterDataTableColumn.tooltip — tooltip on column header
  • BetterDataTableColumn.minWidth / maxWidth — now actually enforced via MaxColumnWidth / MinColumnWidth wrappers
  • BetterDataTableColumn.copyWith()
  • BetterDataTableRow.tooltip — tooltip on hover over entire row
  • BetterDataTableRow.copyWith()
  • BetterDataTableGroup.collapsible — users can collapse/expand groups; controlled via BetterDataTable.collapsedGroups + onGroupToggled
  • BetterDataTableGroup.copyWith()
  • BetterDataTable.onRowSecondaryTap — right-click / secondary tap callback
  • BetterDataTable.rowDivider (BorderSide?) — full-width row divider drawn as a bottom border on each data row (replaces the broken single-cell divider)
  • BetterDataTable.collapsedGroups + BetterDataTable.onGroupToggled

Fixed:

  • BetterDataTableTheme.striped now actually applies alternating row colors
  • alternateRowDecoration is now used for odd-indexed rows
  • cellTextStyle is now applied to every data cell via DefaultTextStyle.merge
  • minWidth / maxWidth on columns were defined but had no effect — fixed
  • Expand toggle now has a circular InkWell splash for better touch feedback

Structural:

  • Split into lib/src/ modules (better_data_table_column.dart, better_data_table_row.dart, better_data_table_group.dart, better_data_table_theme.dart, better_data_table_widget.dart) with a clean barrel export in lib/better_data_table.dart
  • 46 widget and unit tests added
0
likes
160
points
26
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A highly customizable Flutter table widget with sorting, selection, expandable rows, collapsible groups, column visibility, striped rows, and a comprehensive theming system.

Repository (GitHub)
View/report issues

Topics

#table #data-table #grid #ui

License

MIT (license)

Dependencies

flutter

More

Packages that depend on better_data_table