FdcGrid class

High-performance data grid widget from the Community package.

The grid renders and edits an FdcDataSet through configured columns while providing navigation, filtering, sorting, paging, and selection behavior.

Pro-only features such as range selection, expandable detail rows, and layout persistence are intentionally not exposed by this constructor. Use FdcProGrid from package:flutter_data_components_pro/fdc_pro.dart when those features are required.

Inheritance

Constructors

FdcGrid({Key? key, List<FdcGridColumn> columns = const <FdcGridColumn<dynamic>>[], required FdcDataSet dataSet, FdcGridOptions options = const FdcGridOptions(), FdcGridHeader header = const FdcGridHeader(), FdcGridRowIndicator rowIndicator = const FdcGridRowIndicator(), FdcGridCellIndicator cellIndicator = const FdcGridCellIndicator(), FdcGridToolbar toolbar = const FdcGridToolbar(), FdcGridSummary summary = const FdcGridSummary(), FdcGridStatusBar statusBar = const FdcGridStatusBar(), FdcGridThemeData? theme, FdcGridStyle style = const FdcGridStyle(), FdcFormatSettings? formatSettings, List<FdcGridColumnGroup> columnGroups = const <FdcGridColumnGroup>[], FdcGridColumnPinning pinning = const FdcGridColumnPinning(), FdcGridCellChanged? onCellChanged, FdcGridCellPointerEvent? onCellTapDown, FdcGridCellPointerEvent? onCellDoubleTap, FdcGridRowFocusEvent? onRowExit, FdcGridRowFocusEvent? onRowEnter, FdcGridColumnFocusEvent? onColumnExit, FdcGridColumnFocusEvent? onColumnEnter, FdcGridCellFocusEvent? onCellExit, FdcGridCellFocusEvent? onCellEnter, FdcGridCanEditRow? canEditRow, FdcGridCanEditColumn? canEditColumn, FdcGridMenuBuilder? menuBuilder, FdcGridControllerFeature? controller})
Creates a FdcGrid.
const

Properties

canEditColumn FdcGridCanEditColumn?
Optional runtime predicate that can veto editing for a row/column pair.
finalinherited
canEditRow FdcGridCanEditRow?
Optional runtime predicate that can veto editing for a visual row.
finalinherited
cellIndicator FdcGridCellIndicator
Active cell indicator component configuration.
finalinherited
columnGroups List<FdcGridColumnGroup>
Optional visual column groups rendered as an additional header row.
finalinherited
columns List<FdcGridColumn>
Ordered column definitions rendered by the grid.
finalinherited
controller FdcGridControllerFeature?
Optional grid controller integration.
finalinherited
dataSet FdcDataSet
Dataset associated with this object.
finalinherited
detailRow FdcGridDetailRowFeature?
Optional expandable detail-row integration.
finalinherited
formatSettings FdcFormatSettings?
Optional explicit format settings for this grid.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
Header component configuration.
finalinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
layoutPersistence FdcGridLayoutPersistenceFeature?
Optional grid layout persistence integration.
finalinherited
Default body-cell context menu builder. Column-level builders override it.
finalinherited
onCellChanged FdcGridCellChanged?
Called after a grid-originated field write has been accepted locally.
finalinherited
onCellDoubleTap FdcGridCellPointerEvent?
Called when a body cell is double-clicked or double-tapped.
finalinherited
onCellEnter FdcGridCellFocusEvent?
Called when grid focus enters a visual cell.
finalinherited
onCellExit FdcGridCellFocusEvent?
Called when grid focus leaves a visual cell.
finalinherited
onCellTapDown FdcGridCellPointerEvent?
Called when a pointer goes down on a body cell.
finalinherited
onColumnEnter FdcGridCellFocusEvent?
Called when grid focus enters a visual column.
finalinherited
onColumnExit FdcGridCellFocusEvent?
Called when grid focus leaves a visual column.
finalinherited
onRowEnter FdcGridCellFocusEvent?
Called when grid focus enters a visual row.
finalinherited
onRowExit FdcGridCellFocusEvent?
Called when grid focus leaves a visual row.
finalinherited
options FdcGridOptions
Options used by this configuration.
finalinherited
pinning FdcGridColumnPinning
Column pinning behavior and optional pinned-band group labels.
finalinherited
rangeSelection FdcGridRangeSelectionFeature?
Optional range-selection configuration.
finalinherited
rowIndicator FdcGridRowIndicator
Row indicator component configuration.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
statusBar FdcGridStatusBar
Status bar component configuration.
finalinherited
style FdcGridStyle
Grid-level visual style overrides applied on top of the resolved theme.
finalinherited
summary FdcGridSummary
Summary component configuration.
finalinherited
theme FdcGridThemeData?
Optional complete visual theme preset for this grid.
finalinherited
toolbar FdcGridToolbar
Toolbar component configuration.
finalinherited

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<FdcGridHost>
Creates the mutable state for this widget at a given location in the tree.
inherited
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited