data_grid
0.1.0, released 4 years ago by an unverified publisher
High-performance data grid widget for large numeric tables with frozen headers
What it does
Provides a grid widget that efficiently renders large numeric data sets, supports frozen header rows and columns, and offers auto-fit width columns. It includes callbacks for row taps and long presses.
AI-written summary of version 0.1.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to display large numeric tables efficiently
- You require frozen header rows or columns for better UX
- You want a lightweight, declarative grid without external code generation
Skip it when
- You need advanced sorting, filtering or pagination features
- You are working on a very small data set where performance is not a concern
- You require extensive customization beyond the provided API
Strengths
- Optimized layout algorithm for large data
- Frozen header support
- Auto-fit width columns
- Declarative API with callbacks
Weaknesses
- Package is in early development; breaking changes may occur
- Limited feature set (no sorting/filtering/pagination documented)
- No documentation on performance benchmarks
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
Add to pubspec and run flutter pub get
class MyWidget extends StatelessWidget {
const MyWidget({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Grid(
columns: [
GridColumn.autoFitWidth(text: "Hello"),
GridColumn.autoFitWidth(text: "World"),
],
rows: [
GridRow(children: [
GridCell.autoFitWidth(text: "123.12", sortValue: 123.12),
GridCell.autoFitWidth(text: "12", sortValue: 12),
])
],
);
}
}Alternatives
Packages that do the same job and could replace data_grid.
- syncfusion_flutter_datagrid
DataGrid widget for tabular data with editing, sorting, paging and export.
91Compare - trina_grid
A powerful data grid widget for Flutter that supports keyboard navigation, editing, and sticky columns.
91Compare - flutter_table_plus
A customizable, type-safe Flutter table widget with scrolling, sorting, and cell editing.
77Compare - forui_hooks
Provides Flutter Hooks wrappers for Forui widget controllers.
77Compare