Im going to create an excel like application in Flutter where the user can input a quantity to one of the cells and the app automatically calculate its values based on quantity.
Shall i use DataTables or Tables widget?
Both accept widgets as cell content like TextField, Slider or just Text. Anywhere there are some differences:
| Feature | Table | DataTable |
|---|---|---|
| Checkbox column | no | showCheckBoxColumn |
| Set column width | columnWidth | no |
| Set row height | no | dataRowHeight |
| Sortable | no | integrated |
If a cell with a no this does not mean, its not possible. The feature is just not directly supported by the widget. In all cases sizes will computed according to Flutters rendering engine: constraints go down, sizes go up.
Anybody please feel free to add more content to above comparison.
Please also check the newer widgets like TableView (can scroll both horizontally and vertically) and PaginatedDataTable (supports paging).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With