s_spreadsheet/src/s_spreadsheet library

Classes

SSpreadsheet
A reusable, spreadsheet-like 2D table composed of:
SSpreadsheetHitResult
Result of a spreadsheet hit-test: maps a viewport-local position to a grid cell and provides visibility context for edge-triggered auto-scroll.
SSpreadsheetHorizontalMetrics
Immutable snapshot of horizontal scroll state for a spreadsheet.
SSpreadsheetHorizontalScrollButtons
Ready-to-use horizontal left/right scroll buttons bound to an SSpreadsheetHorizontalSyncController.
SSpreadsheetHorizontalSyncController
Shared horizontal synchronization state for SSpreadsheet.
SSpreadsheetState
Public state class for SSpreadsheet.

Typedefs

SSpreadsheetCellBuilder = Widget Function(BuildContext context, int rowIndex, int columnIndex)
Builds a body cell for rowIndex and columnIndex.
SSpreadsheetColumnHeaderBuilder = Widget Function(BuildContext context, int columnIndex)
Builds a fixed column-header cell for columnIndex.
SSpreadsheetColumnWidthBuilder = double Function(int columnIndex)
Resolves a column width for columnIndex.
SSpreadsheetHorizontalMetricsChanged = void Function(double offset, double maxScrollExtent, ScrollController controller)
Reports synchronized horizontal scroll metrics.
SSpreadsheetKeystrokeHudBuilder = Widget Function(BuildContext context, String shortcutLabel, String actionLabel)
Builds a custom HUD overlay widget.
SSpreadsheetRowHeaderBuilder = Widget Function(BuildContext context, int columnIndex)
Builds a fixed row-header cell for rowIndex.
SSpreadsheetRowHeightBuilder = double Function(int columnIndex)
Resolves a row height for rowIndex.
SSpreadsheetScrollButtonBuilder = Widget Function(BuildContext context, {required bool isEnabled, required bool isLeft, required VoidCallback onTap})
Builder used by SSpreadsheetHorizontalScrollButtons to render each arrow button.