Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Whats the difference between DataTables widget and Tables Widget in Flutter?

Tags:

flutter

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?

like image 646
Flutter Newbie Avatar asked Jan 25 '26 15:01

Flutter Newbie


1 Answers

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

like image 191
Jemolah Avatar answered Jan 28 '26 08:01

Jemolah



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!