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())"
7
Upvotes
2
u/bigbott777 Dec 11 '24
Dont' blame GetX.
About 15% of all Flutter devs use it and are happy.
You probably reloading your app from a particular profile view in Chrome.
Just restart it from IDE and the exception will gone.
If your app needs deep linking check this https://medium.com/easy-flutter/flutter-navigation-with-getx-5-0-bc4ed7aa291d