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