trina_grid
2.4.0, released 3 weeks ago by trinavo.com
A powerful data grid widget for Flutter that supports keyboard navigation, editing, and sticky columns.
What it does
TrinaGrid provides a comprehensive data grid widget for displaying, editing, and managing tabular data across all platforms including mobile, web, and desktop. It includes features like sorting, filtering, freezing, pagination, and keyboard navigation.
AI-written summary of version 2.4.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to display and edit tabular data in a spreadsheet-like grid format.
- Your application requires robust desktop keyboard navigation and shortcuts for data manipulation.
- You need advanced grid features such as column freezing, grouping, and client/server-side pagination.
Skip it when
- You only need to display a simple, non-interactive list or small table of static data.
- You require a custom layout that doesn't fit a standard row-and-column grid structure.
Strengths
- Supports multi-platform use including mobile, web, and desktop.
- Extensive feature set covering cell editing, column/row freezing, sorting, and filtering.
- Includes a built-in migration tool from PlutoGrid.
Weaknesses
- Large and complex API surface due to the extensive feature list.
- May require significant configuration for heavily customized use cases.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 6
import 'package:flutter/material.dart';
import 'package:trina_grid/trina_grid.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
body: TrinaGrid(
columns: [
TrinaColumn(title: 'ID', field: 'id', type: TrinaColumnType.text()),
TrinaColumn(title: 'Name', field: 'name', type: TrinaColumnType.text()),
],
rows: [
TrinaRow(cells: {'id': TrinaCell(value: '1'), 'name': TrinaCell(value: 'John')}),
],
),
),
);
}
}Alternatives
Packages that do the same job and could replace trina_grid.
- pluto_grid
A data grid widget that supports keyboard control, column grouping, and editing.
69Compare - 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 - expandable_datatable
Flutter data table with expandable rows for hidden columns.
61Compare
Works with
Packages commonly used together with trina_grid: ones it builds on, ones built on it, and its own family.
- intltrina_grid depends on itA Dart library for internationalization and localization, providing message translation, plural/gender handling, and date/number formatting.
- rxdarttrina_grid depends on itImplementation of the ReactiveX API for asynchronous programming leveraging native Dart Streams.
- pdftrina_grid depends on itA PDF generation library for Dart and Flutter using a widget-like layout system.
- shadcn_uitrina_grid depends on itFlutter port of the shadcn/ui design system with customizable components.