Open javaone199 opened 4 months ago
Table()
supports the column sizing you want through use of IntrinsicColumnWidth()
. No ColSpan though... https://github.com/flutter/flutter/issues/21594
I think maybe the new https://pub.dev/packages/two_dimensional_scrollables package can have all your features though within TableView()
?
I think maybe the new https://pub.dev/packages/two_dimensional_scrollables package can have all your features though within
TableView()
?
This sounds like proposal for the package @moffatman.
I'll keep this issue open as proposal.
Use case
All cells of a GridView have the same size(width x height). It is not suitable for some use cases. For example, For displaying an employee info:
1). The property name column occupies less space than value column. So cell width should be auto. 2). All cell heights need to be auto. Auto: fit content. 3). Map occupies a whole row (colspan: 2).
In html, they can be achieved by the following css:
Proposal
Add attribute "cellSize" to GridView, and add a new class GridCell that supports colspan attribute. For example,