Skip to content

Iconica-Development/flutter_table

Repository files navigation

style: effective dart

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: 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,
  });
}

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]