HandDrawnTableView class

Renders an already-mapped TableMapping into a HandDrawnTable template, optionally with resizable columns.

This is the presentational half of the table feature, split from HandDrawnAnalyticsTable so the spec-driven path (where the bridge has already mapped the result) can render the same table — including resizing — from an AnalyticsWidgetBuilders.table builder, which receives a TableMapping rather than a query.

When resizable is false it pours the mapping into chart directly. When true it overlays draggable boundary handles and manages live widths: initialColumnWidths restores a saved layout (when its length matches the data-column count) and onColumnWidthsChanged reports changes for the consumer to persist. A change in column count resets widths to defaults and reports the reset, since saved widths describe one column shape.

Inheritance

Constructors

HandDrawnTableView({required TableMapping mapping, required HandDrawnTable chart, bool showTruncationFooter = true, String truncatedFooterBuilder(int truncatedCount)?, bool resizable = false, List<double>? initialColumnWidths, void onColumnWidthsChanged(List<double> widths)?, Key? key})
const

Properties

chart → HandDrawnTable
The styling template; its columns/rows are replaced by the mapping.
final
hashCode int
The hash code for this object.
no setterinherited
initialColumnWidths List<double>?
Initial column pixel widths, one per data column. Applied when resizable is true and the length matches the column count.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
mapping TableMapping
The bridge-mapped table data to render.
final
onColumnWidthsChanged → void Function(List<double> widths)?
Called with the full width list after a drag settles and on any reset.
final
resizable bool
Whether columns can be resized by dragging their boundaries.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showTruncationFooter bool
Whether to append a footer row noting truncated rows. Defaults to true.
final
truncatedFooterBuilder String Function(int truncatedCount)?
Builds the footer label for the hidden-row count. Defaults to "+N more".
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<HandDrawnTableView>
Creates the mutable state for this widget at a given location in the tree.
override
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