I have problem with my Flutter project. So I have ScreenA and Screen B. When I insert an object it detect and navigates to Screen B but I see in compiler that ScreenA hasnt "destroied"/dispose. It looks like it still talking with provider and calling some methods. I have tried to set listen:false but it doesnt work. I think I need to so something with life--cyckle methods? like didUpdateWidget or didChangeDependencies().
I don't understand, what if you have 50 app states? With Vue (JS framework) I have a central state store (Vuex) where everything is stored. Then I just listen to whatever data I want from that store, anywhere in my app.
in last part u gave listen = false with context parameter, it means ,provider dosen't care what ever the value is , but what if i care what the value is, that means i have to give the listen = true, the question is, is listen parameter by default set to true ? and if it is set to true , then why 12:34 sec u said it will give an error, what should i do if i need to get notify if the value get changed in darkmodemodel and also access the toggle function?