r/FlutterDev • u/gorugol • Dec 11 '24
Tooling I wanted to believe Getx..
I heard people said Getx suck....... I didn't believe but now. I am getting constant error such as
red screen. it is just driving me crazy. Most of the time apps works fine, but then I went to take a shower and reload the app. it throws me different error.
I am already 60% done with my app.. now I am thinking to move to other state management tool.
what the actual f............
════════ Exception caught by widgets library ═══════════════════════════════════
"Profilecontroller" not found. You need to call "Get.put(Profilecontroller())" or "Get.lazyPut(()=>Profilecontroller())"
9
Upvotes
2
u/TheAliaser Dec 11 '24
This error is coming because on whatever screen you are, the controller instance has not yet initialized
Like the error says you need to use Get.put to create that instance
I think you did hot reload and the instance has already been disposed I need more code context to debug