Hi!
So I'm currently trying to switch over to flutter_bloc from classic state management, I've been working with flutter for over a year now, so there's a lot of refactoring that needs to be done in my project.
I started out with my included PlutoGrid, and for some reason the moment my event is called by selecting something from the dropdown and the state is updated, the filter row disappears, and I can't figure out why. The issue started when I used UniqueKey() as I wanted to force a rerender, as the respective row didn't change it's value.
The BlocProvider is located in my main, and the state management is working with other widgets just fine. I've been trying to figure it out, but I really can't find the issue here. If i get rid of the UniqueKey() it doesnt rerender, but the print statement tells me, that bloc was updated with the correct value.
Hi! So I'm currently trying to switch over to flutter_bloc from classic state management, I've been working with flutter for over a year now, so there's a lot of refactoring that needs to be done in my project.
I started out with my included PlutoGrid, and for some reason the moment my event is called by selecting something from the dropdown and the state is updated, the filter row disappears, and I can't figure out why. The issue started when I used UniqueKey() as I wanted to force a rerender, as the respective row didn't change it's value.
Here's the code:
The BlocProvider is located in my main, and the state management is working with other widgets just fine. I've been trying to figure it out, but I really can't find the issue here. If i get rid of the UniqueKey() it doesnt rerender, but the print statement tells me, that bloc was updated with the correct value.
Thank you in advance!