Open akshg05 opened 3 years ago
I tried using the GetX navigaton as well with no luck :/
declare controller in build function.
not working
My solution would be to delete the controller on widget dispose. And Of course for that, I would need to use StatefulWidget.
@override void dispose() { Get.delete(); super.dispose(); }
Describe the bug I have a minimlaist sample app running on Android with GetX as State Management lib only. There are two screens LandingPage and MainScreen. On going back from MainScreen to LandingPage screen, the controller is not autodisposing as expected.
To Reproduce Steps to reproduce the behavior:
Expected behavior The counter value should be 0
Screenshots If applicable, add screenshots to help explain your problem.
Flutter Version: 2.2.3
Getx Version: latest 4.3.8
Describe on which device you found the bug: ex: Android - Pixel emulator
Minimal reproduce code