[x] first add here key differences between Table & DataTable widgets
Table is just a layout for widgets, so it has params only for this (for example we can set custom column widths with columnWidths param).
DataTable does not have this params, it does layout automatically based on cells content. But it has some other functionality:
cell selection (we're able to show a column with checkboxes too),
cell editing,
row sorting by any column.
Flutter devs also recommend using PaginatedDataTable if we have a lot of rows and columns. It has the same traits as DataTable, but in addition it splits rows into multiple pages (we're able to select how many rows displayed on the page).
[x] take more suitable one
[ ] test it:
[x] test in suitable environment (may be new empty app) - DataTable just bad wrapper above Table widget, so Table is preferred
[x] test if it relevant for our cases - Table is not enough relevant, but closest
[x] test if it nice & comfortably to use - Table is not nice, but get worked
[x] test if fast & efficient on long & wide table
[x] test column auto width functionality
[x] test if column width can be modified by user manually
[x] first add here key differences between Table & DataTable widgets
Table
is just a layout for widgets, so it has params only for this (for example we can set custom column widths withcolumnWidths
param).DataTable
does not have this params, it does layout automatically based on cells content. But it has some other functionality:PaginatedDataTable
if we have a lot of rows and columns. It has the same traits asDataTable
, but in addition it splits rows into multiple pages (we're able to select how many rows displayed on the page).[x] take more suitable one
[ ] test it: