NrbTableEngine class

The main entry point for creating a Nexora Report Builder (NRB) unified 2D matrix.

NrbTableEngine automatically measures your content and available screen space, scales columns proportionally to fit the screen, and then passes the optimized layout down to the underlying NrbTableEngineBuilder engine.

This replaces the deprecated ReportMaker to support dynamic multi-column freezing and HTML-style colSpan and rowSpan.

Inheritance

Constructors

NrbTableEngine({Key? key, double bodyCellHeight = 35, double headerRowHeight = 30, double textSize = 12, double headerTextSize = 13, int frozenColumnsCount = 1, required List<List<NrbHeaderCell>> headers, required List<List<ReportCell>> tableData, Color primaryUiColor = Colors.blue, Color primaryUiTextColor = Colors.white, bool enableDownload = false, bool showDownloadFloatingButton = true, String? packageName, String? apiKey, String? reportName, TableDownloadSuccessCallback? onDownloadCompleted, ReportController? controller})
Creates an NrbTableEngine which automatically handles dynamic column sizing.
const

Properties

apiKey String?
The API key required to authenticate with the export server.
final
bodyCellHeight double
The standard height applied to all body data cells. Defaults to 35.
final
controller ReportController?
An optional controller to programmatically extract the grid's data or trigger exports.
final
enableDownload bool
Master switch to enable or disable the premium download/export features.
final
frozenColumnsCount int
The number of columns to lock (freeze) on the left side of the grid.
final
hashCode int
The hash code for this object.
no setterinherited
headerRowHeight double
The standard height applied to header rows. Defaults to 30.
final
headers List<List<NrbHeaderCell>>
A 2D list defining the header structure. Supports rowSpan and colSpan.
final
headerTextSize double
The default font size for header text. Used for auto-measurement.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onDownloadCompleted TableDownloadSuccessCallback?
Callback fired when the report is successfully downloaded and saved to bytes.
final
packageName String?
The registered Android/iOS package name required for API authentication.
final
primaryUiColor Color
The background color for the main export Floating Action Button (FAB) and dialogs.
final
primaryUiTextColor Color
The foreground/text color for the main export Floating Action Button (FAB).
final
reportName String?
The custom file name used when saving or sharing the exported report.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showDownloadFloatingButton bool
Determines whether to render the interactive Floating Action Button for exports.
final
tableData List<List<ReportCell>>
A pure 2D list of data cells representing the main body grid.
final
textSize double
The default font size for body data text.
final

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
createElement() StatelessElement
Creates a StatelessElement to manage this widget's 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