vtable
0.4.0, released 3 years ago by devoncarew.org
A Flutter table widget with virtualization, sorting, and custom cell rendering.
What it does
Provides a scrollable table that renders only visible rows for performance. Supports column sorting, custom cell widgets, tooltips, and configurable column widths and alignment.
AI-written summary of version 0.4.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- Displaying large data sets that need fast scrolling
- Needing sortable columns or custom cell content
- Wanting a lightweight, pure‑Flutter table without external native code
Skip it when
- Very small tables where a simple ListView suffices
- Require spreadsheet‑style editing, pagination, or complex formulas
- Need built‑in export or import features
Strengths
- Virtualization keeps memory usage low
- Highly customizable cell rendering and validation
- Built‑in sorting and theming support
Weaknesses
- Limited to basic table features; no built‑in pagination or editing
- No code generation or declarative schema support
- May lack advanced features found in dedicated data‑grid packages
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
Widget build(BuildContext context) {
return VTable<SampleRowData>(
items: listOfItems,
columns: [
VTableColumn(
label: 'Planet',
width: 120,
grow: 0.6,
transformFunction: (row) => row.name,
),
VTableColumn(
label: 'Gravity',
width: 100,
grow: 0.3,
transformFunction: (row) => row.gravity.toStringAsFixed(1),
alignment: Alignment.centerRight,
compareFunction: (a, b) => a.gravity.compareTo(b.gravity),
validators: [SampleRowData.validateGravity],
),
],
);
}Alternatives
Packages that do the same job and could replace vtable.
- flutter_table_plus
A customizable, type-safe Flutter table widget with scrolling, sorting, and cell editing.
77Compare - davi
Fully customized dataview widget with on-demand cell building and bidirectional scroll bars.
78Compare - dropdown_flutter
Customizable dropdown with search, multi‑select, and built‑in validation
72Compare - qr_flutter
Flutter widget for rendering QR codes with customizable size, colors, and optional embedded images.
50Compare