doonfrs / pluto_grid_plus

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
18 stars 20 forks source link

PlutoColumnType.select don't update value in release mode #21

Closed baryalenn closed 3 months ago

baryalenn commented 5 months ago

When I select an object (instance of PersonModel) in the list it does not update the value in the cell in release mode, however it works in debug mode.

Code sample

PlutoColumn(
  title: 'Person',
  field: personField,
  width: 120,
  type: PlutoColumnType.select(listPerson), // listPerson is List of PersonModel
  applyFormatterInEditing: true,
  formatter: (dynamic value) {
    // value is instance of PersonModel
    return value == null || value == "" ? "" : "${value?.lastName ?? "?"} ${value?.firstName ?? "?"}";
  }),

Execution Environment

Flutter version Flutter version is 3.16.5

PlutoGrid version PlutoGrid version is 7.0.2

OS Windows 11

doonfrs commented 4 months ago

PlutoGrid version is 7.0.2

I couldn't expect the reason behind the bug, but I found that you are using pluto_grid, you need to move to pluto_grid_plus and use the latest version from pub.dev, then give it a try, because the old version is not supported anymore. please consider checking the debug console in Chrome maybe something is wrong is happening.