flutter_table (1.0.0)
Published 2024-10-31 09:23:04 +01:00 by freek
Installation
dart pub add flutter_table:1.0.0 --hosted-url=
About this package
A new Flutter package project.
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 support@iconica.nl.
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 support@iconica.nl
Details
2024-10-31 09:23:04 +01:00
Assets (1)
Versions (1)
View all
Pub
3
13 KiB
1.0.0.tar.gz
13 KiB
1.0.0
2024-10-31