Flutter Getx Controllers Get Deleted | Solved
You will learn how to solve the problem of getx controllers getx deleted from memory.
In general when you load the dependencies, if you mark your controller as fenix:true, your controllers should not get deleted. See it like below
Get.lazyPut(() { return ProductController(productRepo: Get.find())}, fenix: true);
You can put here any controllers you want.Β
But there are times getx controllers still get deleted. That happens if you use Get.offNamed(your_route) to go or navigate to a different screen.Β
Instead of using Get.offNamed(), you may try to use Get.toNamed () or Get.to().
π₯π₯π₯π₯π₯π₯ππππππππππTake the complete course on Udemey
https://www.udemy.com/course/master-flutter-by-building-a-video-and-voice-call-chat-app/?couponCode=83F83963631D0DB960E4 (it's with a coupon special discount)
ππππππππΌβ«π₯π₯π₯π₯π₯π₯
More about getx state management system
https://youtu.be/uki8BS7xEug
https://youtu.be/M0OwOYPFkrM
Read more articles about getx
https://www.dbestech.com/tutorials/flutter-getx-app-tutorial
Flutter food delivery app
https://www.dbestech.com/tutorials/flutter-food-delivery-app-e-commerce-for-ios-and-android