RenderTableLayout constructor
RenderTableLayout({
- List<
RenderBox> ? children, - required TableSizeSupplier width,
- required TableSizeSupplier height,
- required Clip clipBehavior,
- CellPredicate? frozenCell,
- CellPredicate? frozenRow,
- double? verticalOffset,
- double? horizontalOffset,
- Size? viewportSize,
Creates a render object for table layout.
Initializes the table layout system with sizing functions and optional frozen cell configurations. This render object handles the complex layout calculations for tables with variable cell sizes.
Parameters:
children(List<RenderBox>?): Optional initial child render boxeswidth(TableSizeSupplier, required): Function providing width for each columnheight(TableSizeSupplier, required): Function providing height for each rowclipBehavior(Clip, required): How to clip children outside table boundsfrozenCell(CellPredicate?): Predicate identifying frozen columnsfrozenRow(CellPredicate?): Predicate identifying frozen rowsverticalOffset(double?): Vertical scroll offset for viewporthorizontalOffset(double?): Horizontal scroll offset for viewportviewportSize(Size?): Size of the visible viewport area
Frozen cells remain visible during scrolling, useful for sticky headers.
Implementation
RenderTableLayout(
{List<RenderBox>? children,
required TableSizeSupplier width,
required TableSizeSupplier height,
required Clip clipBehavior,
CellPredicate? frozenCell,
CellPredicate? frozenRow,
double? verticalOffset,
double? horizontalOffset,
Size? viewportSize})
: _clipBehavior = clipBehavior,
_width = width,
_height = height,
_frozenColumn = frozenCell,
_frozenRow = frozenRow,
_verticalOffset = verticalOffset,
_horizontalOffset = horizontalOffset,
_viewportSize = viewportSize {
addAll(children);
}