About 72,700 results
Open links in new tab
  1. flutter - GetX Controller not disposing off automatically - Stack Overflow

    Sep 5, 2021 · @override void dispose() { Get.delete<Controller>(); super.dispose(); } Update 22 Nov. 2021 You can still use the above solution, or for a more elegant approach you can use …

  2. How to Dispose Remove or Close Getx Controller - Learn Flutter

    Jun 9, 2022 · How to Dispose Remove or Close Getx Controller. Use build() or dispose() method to remove the controllers.

  3. getxController isn't being disposed/deleted when it should be

    From our experience a controller is never disposed when using Get.put(controller) or Get.lazyPut(() => controller). If the widget creates the controller by using a GetX<Controller> …

  4. GetX and how controllers are supposed to be disposed

    Sep 2, 2021 · I was expecting that when navigating away using Get.off(...) from PageIntro to PageLogin, that the IntroController would be deleted by GetX, but it's not. I know I can …

  5. Flutter GetX - How to manage controller deletion?

    Nov 16, 2022 · Basically it deletes its controller whenever its context was removed from stack. Solution was simple to set it to autoRemove: false, Sample code is as follow: …

  6. GetX in Flutter: Dependency Management for special cases

    Aug 7, 2021 · One of its pillar is dependency management, simple and powerful , that allows you to inject and use controllers with just 1 lines of code, something like that. By default Getx …

  7. Using goRouter with Gex not disposing controller #2977 - GitHub

    Dec 2, 2023 · GetX navigation is what allows you to remove controllers when a page leaves the stack. You basically have two ways to do this: 1: use GetBuilder to inject your controllers. 2: …

  8. Flutter GetX Controller Not Getting Disposed Automatically

    Sep 18, 2023 · The controller won't be disposed because page A is still there. When you pop pageB, Page2Controller will be disposed. If you replace pageA with pageB by calling …

  9. GetX Controller make sure release Controller - Learn Flutter

    Oct 15, 2023 · If you use GetX and your controller instantiated with Get.put() or Get.put() not with fenix:true or permanent:true, That controller instance should be auto disposed. The default …

  10. GetxController doesn't dispose fields. · Issue #1037 · jonataslaw/getx

    Jan 25, 2021 · For your case, the best option would be to use Get.create, as it creates a new instance of the controller each time it is used. The memory increase you demonstrated will …

  11. Some results have been removed
Refresh