Hi Renuga,
I'm just following this item back up if OK; as I am starting to implement the autofit - but for text only this time, rather than a widget.
I was planning on making the text element multi-lined (including the \n) - but I am wondering if this is now not available...?
Since I first looked at this; the new release came out.
In trying to use the code I had before; the ColumnSizer type cannot be located...?
Without using this; I am not able to do a getAutoRowheight.
If you can confirm if this is available in a different method - that would be great.
Kind regards
Ian.
final ColumnSizer _columnSizer = ColumnSizer();
return SfDataGridTheme(
data: SfDataGridThemeData(
gridLineColor: Colors.black38, gridLineStrokeWidth: 0.5),
child: SfDataGrid(
columnWidthMode: ColumnWidthMode.fill,
columnSizer: _columnSizer,
onQueryRowHeight: (RowHeightDetails rowHeightDetails) {
if (rowHeightDetails.rowIndex == 0)
return rowHeightDetails.rowHeight;
else
return _columnSizer.getAutoRowHeight(rowHeightDetails.rowIndex);
},