flutter_table

BSD-3-CLAUSE License

Stars
0
Committers
2

Use this package to display tables in your application

Setup

Add flutter_table to your pubspec.yaml file.

How to use

 FlutterTable<MyData>(
    tableDefinition: TableDefinition<MyData>(
        title: '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,
  });
}

Issues

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].

Want to contribute

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.

Author

This flutter_table package for Flutter is developed by Iconica. You can contact us at [email protected]

Badges
Extracted from project README
style: effective dart
Related Projects