Closed lublak closed 7 months ago
The issue is the resize mode:
configuration: const PlutoGridConfiguration(
columnSize: PlutoGridColumnSizeConfig(
resizeMode: PlutoResizeMode.none,
),
),
you need to enable resize before autofit the columns:
stateManager.addListener(() {
stateManager.setColumnSizeConfig(
const PlutoGridColumnSizeConfig(
resizeMode: PlutoResizeMode.normal,
),
);
for (var col in stateManager.columns) {
stateManager.autoFitColumn(
stateManager.gridKey.currentContext!,
col,
);
}
stateManager.setColumnSizeConfig(
const PlutoGridColumnSizeConfig(
resizeMode: PlutoResizeMode.none,
),
);
});
This issue is stale because it has been open for 30 days with no activity.
onLoaded: (PlutoGridOnLoadedEvent event) { for(int i = 0 ;i < (columns.length - 3); i++) { event.stateManager.autoFitColumn(context, columns[i+3]); } },
i am used auto fix autoFitColumn !!
use index of column , to know which columns need to be auto-fixed
This issue is stale because it has been open for 30 days with no activity.
This issue was closed because it has been inactive for 14 days since being marked as stale.
Currently i use
PlutoInfinityScrollRows
. But currently most columns are to big and not fit. I also tried all combinations of:I also tried to trigger the autofit method:
But the colums not auto resize.![grafik](https://github.com/bosskmk/pluto_grid/assets/44057030/b45a5746-3146-4ec3-8e42-1afb3b93292f)