bosskmk / pluto_grid

PlutoGrid is a dataGrid for flutter that can be controlled by the keyboard on desktop and web. Of course, it works well on Android and IOS.
https://pluto.weblaze.dev
MIT License
637 stars 291 forks source link

column size change event ? #942

Closed shahirsoft closed 8 months ago

shahirsoft commented 9 months ago

hi How to Detect Column Resizing?

github-actions[bot] commented 8 months ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 8 months ago

This issue was closed because it has been inactive for 14 days since being marked as stale.

fewling commented 4 months ago

In case it helps anyone:

return PlutoGrid(
      // other settings...,
      onLoaded: (event) {
        event.stateManager.resizingChangeNotifier.addListener(() {
          for (final col in event.stateManager.columns) {
            logger.d('col: ${col.title} - ${col.width}');
          }
        });
      },
    )