Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/iconica-development/flutter_table
https://github.com/iconica-development/flutter_table
component flutter
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/iconica-development/flutter_table
- Owner: Iconica-Development
- License: bsd-3-clause
- Created: 2024-08-28T12:21:03.000Z (5 months ago)
- Default Branch: master
- Last Pushed: 2024-09-06T12:34:27.000Z (5 months ago)
- Last Synced: 2024-10-11T05:22:53.552Z (4 months ago)
- Topics: component, flutter
- Language: Dart
- Homepage:
- Size: 21.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.MD
- License: LICENSE
Awesome Lists containing this project
README
[![style: effective dart](https://img.shields.io/badge/style-effective_dart-40c4ff.svg)](https://github.com/tenhobi/effective_dart)
Use this package to display tables in your application
## Setup
Add ```flutter_table``` to your ```pubspec.yaml``` file.
## How to use
```dart
FlutterTable(
tableDefinition: TableDefinition(
title: 'My Table',
columns: [
TableColumn(
name: 'Title',
size: 1,
itemBuilder: (context, item) => Text(
item?.data['Title'],
),
),
TableColumn(
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
```dart
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](https://github.com/Iconica-Development/flutter_table) page. Commercial support is available if you need help with integration with your app or services. You can contact us at [[email protected]](mailto:[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](../CONTRIBUTING.md) and send us your [pull request](https://github.com/Iconica-Development/flutter_table/pulls).
## Author
This flutter_table package for Flutter is developed by [Iconica](https://iconica.nl). You can contact us at