dense_table 1.2.0
dense_table: ^1.2.0 copied to clipboard
Zero-dependency high-density virtualized data table for Flutter. Renders 100,000+ rows with resizable and sortable columns, multi-selection, and keyboard navigation.
1.2.0 #
- Virtualized Vertical Cell Merging (
rowSpanBuilder&DenseRowSpan): AddedrowSpanBuilder(DenseRowSpanResolver) andDenseRowSpan(startRow,rowSpan,backgroundColor,stickyViewportAlignment) toDenseTableandDenseTable.builder, rendering vertically merged cells inO(1)viewport time across 100,000+ rows while keeping labels visible whenstartRowscrolls above the viewport and preserving row click/hover pass-through. - Header & Sort Cycle Customization: Added
DenseSortCycle(tristatevs 2-statetoggle),DenseColumn.initialSortDirection,DenseColumn.headerKey,DenseColumn.headerBuilder, andDenseTable.sortIconBuilder. - Header Sort Indicator Styling (
DenseStyle): AddedactiveHeaderTextStyle,showUnsortedSortIcon, andsortIconInline(with zero-dependency dual-chevron unsorted indicator painting) for compact inline sort headers.
1.1.0 #
- Stable Row Identity (
rowIdBuilder): AddedrowIdBuilder(DenseRowIdGetter),dataIdentity, andonSelectedIdsChangedtoDenseTableandDenseTable.builderso selection, keyboard focus, and theShift-range anchor track stable domain record IDs across external search filtering, pagination, and live streaming insertions/deletions. - Controller Stable ID APIs: Extended
DenseTableControllerwithinitialSelectedRowIds,retainHiddenSelectionIds(retains hidden selections across filter queries while scoping headerSelect Alltoggle to visible rows viatoggleSelectAllVisible),selectedRowIds,totalSelectedIdCount,focusedRowId,anchorRowId,isRowIdSelected,indexOfRowId,rowIdAt,selectRowId,toggleRowId,setSelectedRowIds,setFocusedRowId, andscrollToRowId. - Double-Tap Record Identity: Bound
300msdouble-click detection to stable row identity whenrowIdBuilderis 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 (
dependenciesuses 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),DenseColumndefinitions,DenseTableController, and single-passCustomPainterrow/header grid rendering. - Adaptive Layout Constraint Resolution: Fixed unbounded vertical (
Column/SingleChildScrollView/Dialog) and narrow horizontal split-pane layout issues without relying on windowMediaQuerydimensions or requiring aMaterialancestor. - 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, instant0mssingle-click +300msdouble-click detection, andArrowUp/Down,PageUp/Down,Home/End,Space,Enter,Escapekeyboard navigation. - Built-in Dark & Light Presets: Added
DenseStyle.dark(),DenseStyle.light(), andDenseStyle.copyWith().
0.1.0 #
- Initial release with fixed-extent
ListView.buildervirtualization and dark IDEDenseStylestyling.