data_grid library
Classes
-
CellRenderContext<
T extends DataGridRow> - Context provided to cell renderers.
-
CellRenderer<
T extends DataGridRow> - Abstract base class for custom cell rendering.
- ClearFilterEvent
- ClearSelectionEvent
- ColumnFilter
- ColumnReorderEvent
- ColumnResizeEvent
- CustomHorizontalScrollbar
- A custom horizontal scrollbar widget with drag support.
- CustomVerticalScrollbar
- A custom vertical scrollbar widget with drag support.
-
DataGrid<
T extends DataGridRow> - A high-performance, virtualized data grid widget for displaying tabular data.
-
DataGridBody<
T extends DataGridRow> - DataGridBorders
- Border settings for DataGrid elements.
-
DataGridCell<
T extends DataGridRow> -
DataGridChildDelegate<
T extends DataGridRow> - Delegate that provides children (cells) for the 2D grid viewport. This is responsible for building widgets at specific grid coordinates.
- DataGridColors
- Color settings for DataGrid elements.
-
DataGridColumn<
T extends DataGridRow> - Configuration for a column in the DataGrid.
-
DataGridController<
T extends DataGridRow> - Controller for managing DataGrid state, data, and events.
- DataGridDimensions
- Dimension settings for DataGrid layout.
- DataGridEvent
-
DataGridHeader<
T extends DataGridRow> - DataGridHeaderCell
- A single header cell widget that displays column title and handles sorting/resizing. Supports:
-
DataGridInherited<
T extends DataGridRow> -
DataGridInterceptor<
T extends DataGridRow> - Base class for DataGrid interceptors.
- DataGridLoadingOverlay
- Default loading overlay widget displayed during heavy operations.
- DataGridOverlayTheme
- Theme settings for loading overlays in DataGrid.
- DataGridPadding
- Padding settings for DataGrid elements.
- DataGridRow
- Base class for rows displayed in a DataGrid.
-
DataGridRowWithPinnedCells<
T extends DataGridRow> - A data grid row widget that supports pinned (frozen) columns.
-
DataGridScrollView<
T extends DataGridRow> -
DataGridState<
T extends DataGridRow> - DataGridTheme
- An inherited widget that provides DataGridThemeData to descendant widgets.
- DataGridThemeData
- Theme configuration for customizing the appearance of a DataGrid.
- DataGridVicinity
- Represents a cell's location in the 2D grid. Maps row/column coordinates to xIndex/yIndex used by the viewport.
-
DataGridViewport<
T extends DataGridRow> - The viewport widget that displays a scrollable window into the 2D grid. This widget creates and manages the render object that performs layout.
- DeleteRowEvent
- DeleteRowsEvent
- EditState
-
FilterDelegate<
T extends DataGridRow> - FilterEvent
- FilterRenderer
- Abstract base class for custom filter rendering.
- FilterResult
- FilterState
- GridScrollController
- GroupByColumnEvent
- GroupState
- InsertRowEvent
- InsertRowsEvent
-
LoadDataEvent<
T> - RefreshDataEvent
-
RenderDataGridViewport<
T extends DataGridRow> - The render object that performs the actual layout of the 2D grid. This implements the lazy rendering logic that only builds visible cells.
-
RowRenderContext<
T extends DataGridRow> - Context provided to row renderers with all necessary state and callbacks.
-
RowRenderer<
T extends DataGridRow> - Abstract base class for custom row rendering.
- ScrollbarTracker
- Widget that tracks scroll controller changes and rebuilds its child.
- ScrollEvent
- SelectAllRowsEvent
- SelectAllVisibleEvent
- SelectionState
- SelectRowEvent
- SelectRowsRangeEvent
- SetLoadingEvent
- SetSelectionModeEvent
- SortColumn
-
SortCompleteEvent<
T extends DataGridRow> -
SortDelegate<
T extends DataGridRow> - Abstract delegate for handling sort operations.
- SortEvent
- SortResult
- Result of a sort operation.
- SortState
- ToggleGroupExpansionEvent
- UngroupColumnEvent
- UpdateCellEvent
- UpdateRowEvent
-
ViewportDelegate<
T extends DataGridRow> - Abstract delegate for handling viewport calculations.
- ViewportResizeEvent
- ViewportState
Extensions
- ColumnFilterPatterns on ColumnFilter
- Adds pattern-matching-related methods to ColumnFilter.
- DataGridContext on BuildContext
-
DataGridStatePatterns
on DataGridState<
T> - Adds pattern-matching-related methods to DataGridState.
- EditStatePatterns on EditState
- Adds pattern-matching-related methods to EditState.
- FilterStatePatterns on FilterState
- Adds pattern-matching-related methods to FilterState.
- GroupStatePatterns on GroupState
- Adds pattern-matching-related methods to GroupState.
- SelectionStatePatterns on SelectionState
- Adds pattern-matching-related methods to SelectionState.
- SortColumnPatterns on SortColumn
- Adds pattern-matching-related methods to SortColumn.
- SortStatePatterns on SortState
- Adds pattern-matching-related methods to SortState.
- ViewportStatePatterns on ViewportState
- Adds pattern-matching-related methods to ViewportState.
Constants
- kSelectionColumnId → const int
- Column ID used for the selection checkbox column.
- kSelectionColumnWidth → const double
- Default width for the selection checkbox column.
Typedefs
- CellEditorBuilder = Widget Function(BuildContext context, dynamic value, ValueChanged onChanged)
- Builder function for custom cell editor widgets.
-
CellFormatter<
T extends DataGridRow> = String Function(T row, DataGridColumn< DataGridRow> column) - Formatter function to convert cell values to display strings.