ReportMaker class

The main entry point for creating a Nexora Report Builder (NRB) table.

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

Inheritance

Constructors

ReportMaker({Key? key, double cellWidth = 100, double bodyCellHeight = 35, double headerHeight = 30, double textSize = 12, double headerTextSize = 13, required List<HeaderCell> headers, required List<SubHeaderCell> subHeaders, required List<ReportCell> leftColumn, required List<List<ReportCell>> tableData, String stickyHeaderLabel = "Header", Color stickyHeaderBackgroundColor = Colors.blue, Color stickyHeaderForegroundColor = Colors.white, bool enableDownload = false, bool showDownloadFloatingButton = true, String? packageName, String? apiKey, String? reportName, DownloadSuccessCallback? onDownloadCompleted, ReportController? controller})
Creates a ReportMaker 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.
final
cellWidth double
The default fallback width for individual data cells.
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
hashCode int
The hash code for this object.
no setterinherited
headerHeight double
The standard height applied to header and sub-header rows.
final
headers List<HeaderCell>
The list of top-level headers, supporting column spans.
final
headerTextSize double
The default font size for header text.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
leftColumn List<ReportCell>
The list of cells rendered in the sticky left-hand column.
final
onDownloadCompleted DownloadSuccessCallback?
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
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
stickyHeaderBackgroundColor Color
The background color for the top-left sticky header and main export FAB.
final
stickyHeaderForegroundColor Color
The text color for the top-left sticky header and main export FAB.
final
stickyHeaderLabel String
The text displayed in the top-left intersection cell (sticky header).
final
subHeaders List<SubHeaderCell>
The list of sub-headers displayed directly underneath the main headers.
final
tableData List<List<ReportCell>>
The 2D matrix of report 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