Comments (1)
Hi, I believe there is no memory leak problem in your description, you created a final static variable, it behaves like this. I think perhaps what you intended to do was a static get
'''
static YourController get controller => Get.find();
'''
I don't know where you saw that you could use GetX in the way you described, but this was literally creating a singleton of your controller. The intention of GetX is precisely to reduce or completely eliminate singletons that remain forever in memory, and for this purpose a single global variable is used to manage the instances. Avoid "static final" unless you are sure that is what you want.
'static Type get' is what you need
from getx.
Related Issues (20)
- GetxController value change listen is called without widget init
- get.dialog is automatic dismiss when app lifecycle is background.
- Margin of The GetSnackBar is Blocking Clickable Widget Under the Snackbar
- any suggestions to support deferred for GetMaterialApp?
- Get.arguments coming Null for Unit test
- Add zh_Hans and zh_Hant when using multiple languages
- Null check operator used on a null value HOT 2
- Routing_issue
- iOS swipe back works with new PopScope widget and canPop: false HOT 2
- How to cancel execution request for GetConnect like Dio's CancelToken
- How to print request data
- Can you add a new folder name : "widgets" when every time we create new page or first time init get in new project
- Can you add a new folder name : "widgets"
- Caching data from api with Getconnect
- preventDuplicates error
- When the iOS app is in the background, calling Dart code results in the prompt "Unhandled Exception: 'XXXXXController' not found."
- About the WebSocket issue HOT 2
- FullLifeCycleMixin的回调方法没有执行,找不到原因! HOT 1
- Getx fails to clear the arguments of the previous screen from memory.
- Flutter Web App With Getx Don't Work in Some hosting Like Firebase Hosting HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from getx.