I currently have many problems in my app with the get
package for Flutter (https://pub.dev/packages/get) and the following state scenario:
For example I have a GetxController UserController
. I need this controller in different Widgets, so I initialize it with Get.put()
in the first widget and for the other child widgets I'll call it with Get.find()
. That works.
But: I have some widgets that sometimes load before the controller got initialized and sometimes after. So I get many "UsersController" not found
errors. Maybe there exists some workaround for this problem?