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
636 stars 290 forks source link

Updated state depending on original data? #1003

Closed IntCleastwood closed 4 months ago

IntCleastwood commented 6 months ago

There is a rowColorCallback (the only way to conditionally colorize a row?) which i use set the row color if it is in state "updated" ... However, the state seems to be always in updated state when changed for the first time, even if the line later does not differ from the original value

Example:

Initial content of cell "name" is "test" -> row status = "added" -> row color is white Content gets changed to "test2" -> row status = "updated" -> row color switched to orange Content gets changed back to "test" again -> status = "updated" -> row color is still orange ... even if the row now is the same as initial ...

Any idea how to check if the row is edited in a way that it corresponds to the original value?

github-actions[bot] commented 5 months ago

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

github-actions[bot] commented 4 months ago

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