I use DataTable in my Flutter app. This is simple example of my code:
DataTable(
columns: [
DataColumn(label: Text('Column1')),
DataColumn(label: Text('Column2')),
DataColumn(label: Text('Column3')),
],
rows: [
DataRow(cells: [
DataCell(Text('1')),
DataCell(Text('2')),
DataCell(Text('6')),
]),
DataRow(cells: [
DataCell(Text('12')),
DataCell(Text('John')),
DataCell(Text('9')),
]),
],
)
I need to:
-column1 to be 20% of the available width
-column1 to be 40% of the available width
-column1 to be 40% of the available width
How can I do this? Is it possible for DataTable?