Open BunnyBuddy opened 1 month ago
Two things:
@ciriousjoker Its just making the variable/controller or whatever observable and instead of calling setState() I can just wrap the widget, with that particular variable, in Obx() and it'll listen for changes. It's kinda similar to setstate (but instead of rebuilding the entire widget tree It just updates that particular widget which is performance wise better believe it or not). I've tried it without GetX as well and it does the same thing so I am pretty sure a different state management is not the issue here. Cheers.
@BunnyBuddy Ah ok. I'm not convinced that obx can bypass the regular flutter rendering process of laying out the whole subtree of widgets again on every state while reusing unchanged stuff, but I haven't done any benchmarks or looked into it yet.
Either way, my guess is that without obx magic it should work.
I am using 2 FlipCards and they have to flip every 5 seconds, but the moment I added the second flip card, every time I land on the screen it throws this error but keeps working okay.
ERROR:
Steps to Reproduce
This is my current code, (using GetX for state management)