Use this package to display tables in your application
Add flutter_table
to your pubspec.yaml
file.
FlutterTable<MyData>(
tableDefinition: TableDefinition<MyData>(
title: Text('My Table'),
columns: [
TableColumn<MyData>(
name: 'Title',
size: 1,
itemBuilder: (context, item) => Text(
item?.data['Title'],
),
),
TableColumn<MyData>(
name: 'Size',
size: 1,
itemBuilder: (context, item) {
return Text(
item?.data['Size'],
);
},
),
],
),
data: data,
),
Make sure to define a class that extends TableItemModel
like this
class MyData extends TableItemModel {
MyData({
required super.data,
super.onTap,
});
}
Please file any issues, bugs or feature request as an issue on our GitHub page. Commercial support is available if you need help with integration with your app or services. You can contact us at [email protected].
If you would like to contribute to the plugin (e.g. by improving the documentation, solving a bug or adding a cool new feature), please carefully review our contribution guide and send us your pull request.
This flutter_table package for Flutter is developed by Iconica. You can contact us at [email protected]