I’m trying to set the column size of a table in Flutter. Is there a way to adjust the size of the columns to the length of the text within them? The Row
and Expanded
widgets will work, but not on TableRow
. What advice can you provide?
Unfortunately, there is no direct way to set the column size of a TableRow
in Flutter to adjust to the length of the text within them. One possible workaround is to use a ListView
with DataTable
instead of a Table
widget. Another option is to use a package like flutter_tableview
that allows for more customization of table columns.