Skip to main content

dense_table 1.3.0 copy "dense_table: ^1.3.0" to clipboard
dense_table: ^1.3.0 copied to clipboard

Zero-dependency virtualized data table and editable grid for Flutter. Renders 100,000+ rows with inline cell editing, RowSpan, sorting, resizing, and selection.

1.3.0 #

  • Spreadsheet-Style Inline Cell Editing (DenseColumn.editable): Added zero-dependency inline cell editing built directly on flutter/widgets.dart EditableText—supporting DenseEditTrigger (doubleTap, f2OrEnter, singleTap), per-cell canEditCell guards, editValueGetter, DenseColumn.validator, custom DenseColumn.editorBuilder (DenseCellEditContext), onCellEditCommitted, and commitOnTapOutside.
  • 2D Cell Navigation & Off-Screen Edit Retention: Added F2 / Enter edit activation, Tab / Shift+Tab cycling across editable columns (with row wrapping and automatic horizontal + vertical viewport scrolling), Enter commit-and-advance-down, Escape cancel with table-level focus retention, ArrowLeft / ArrowRight column focus navigation, and viewport-overlay editor mounting so active draft edits survive scrolling across 100,000+ virtualized rows.
  • Dirty Cell Staging & Stable rowId Reconciliation (DenseTableController): Added dirtyCells, allDirtyChanges, hasDirtyCells, dirtyCellCount, totalDirtyCellCount, isCellDirty, dirtyChangeAt, dirtyTextAt, recordCellChange (with automatic baseline revert detection), clearDirtyCell, clearDirtyCells, focusedColumn, editingCell, editingError, startEditing, commitEditing, and cancelEditing—preserving staged cell edits across sorting and external filtering when rowIdBuilder is configured.
  • Editable Grid Visual Tokens (DenseStyle): Added focusedCellBorderColor, editingCellBackgroundColor, editingCellBorderColor, editingErrorBorderColor, editingCursorColor, editingSelectionColor, dirtyCellIndicatorColor, and dirtyCellIndicatorSize (single-pass corner dirty marker and focused cell outline in CustomPainter).

1.2.0 #

  • Virtualized Vertical Cell Merging (rowSpanBuilder & DenseRowSpan): Added rowSpanBuilder (DenseRowSpanResolver) and DenseRowSpan (startRow, rowSpan, backgroundColor, stickyViewportAlignment) to DenseTable and DenseTable.builder, rendering vertically merged cells in O(1) viewport time across 100,000+ rows while keeping labels visible when startRow scrolls above the viewport and preserving row click/hover pass-through.
  • Header & Sort Cycle Customization: Added DenseSortCycle (tristate vs 2-state toggle), DenseColumn.initialSortDirection, DenseColumn.headerKey, DenseColumn.headerBuilder, and DenseTable.sortIconBuilder.
  • Header Sort Indicator Styling (DenseStyle): Added activeHeaderTextStyle, showUnsortedSortIcon, and sortIconInline (with zero-dependency dual-chevron unsorted indicator painting) for compact inline sort headers.

1.1.0 #

  • Stable Row Identity (rowIdBuilder): Added rowIdBuilder (DenseRowIdGetter), dataIdentity, and onSelectedIdsChanged to DenseTable and DenseTable.builder so selection, keyboard focus, and the Shift-range anchor track stable domain record IDs across external search filtering, pagination, and live streaming insertions/deletions.
  • Controller Stable ID APIs: Extended DenseTableController with initialSelectedRowIds, retainHiddenSelectionIds (retains hidden selections across filter queries while scoping header Select All toggle to visible rows via toggleSelectAllVisible), selectedRowIds, totalSelectedIdCount, focusedRowId, anchorRowId, isRowIdSelected, indexOfRowId, rowIdAt, selectRowId, toggleRowId, setSelectedRowIds, setFocusedRowId, and scrollToRowId.
  • Double-Tap Record Identity: Bound 300ms double-click detection to stable row identity when rowIdBuilder is configured so live row insertions between clicks never misfire on an adjacent record.

1.0.0 #

  • Zero-Dependency Architecture: Removed all external runtime and development package dependencies (dependencies uses only the Flutter SDK; Wasm-ready across Android, iOS, Linux, macOS, Windows, and Web).
  • True 100,000+ Row Virtualization & DenseTable.builder: Added lazy cell builder constructor (DenseTable.builder), DenseColumn definitions, DenseTableController, and single-pass CustomPainter row/header grid rendering.
  • Adaptive Layout Constraint Resolution: Fixed unbounded vertical (Column / SingleChildScrollView / Dialog) and narrow horizontal split-pane layout issues without relying on window MediaQuery dimensions or requiring a Material ancestor.
  • Resizable Columns & 2D Scroll Sync: Added interactive column drag-resizing (minColumnWidth / maxColumnWidth), double-click width reset, and bidirectional horizontal scroll synchronization between sticky headers and the virtualized body.
  • Sortable Columns: Added clickable column sorting (ascending -> descending -> unsorted) with natural numeric/string comparison (compareDenseValues), custom comparators, and cached index permutation.
  • Row Selection & Keyboard Navigation: Added DenseSelectionMode (none, single, multi), optional compact tristate checkbox column, Ctrl/Cmd+Click, Shift+Click range selection, Ctrl/Cmd+A, instant 0ms single-click + 300ms double-click detection, and ArrowUp/Down, PageUp/Down, Home/End, Space, Enter, Escape keyboard navigation.
  • Built-in Dark & Light Presets: Added DenseStyle.dark(), DenseStyle.light(), and DenseStyle.copyWith().

0.1.0 #

  • Initial release with fixed-extent ListView.builder virtualization and dark IDE DenseStyle styling.
1
likes
0
points
259
downloads

Publisher

verified publisherkeyscope.dev

Weekly Downloads

Zero-dependency virtualized data table and editable grid for Flutter. Renders 100,000+ rows with inline cell editing, RowSpan, sorting, resizing, and selection.

Repository (GitHub)
View/report issues

Topics

#data-table #datagrid #table #virtualization #grid

License

unknown (license)

Dependencies

flutter

More

Packages that depend on dense_table