Here you will learn when and how to use Flutter Getx GetConnect. If your controllers need to pass base url and they also need to use the service the like get() method or other related method like Post(), Update() and Delete(), then you must extend GetConnect. So using Getx GetConnect(), you dont need to use…
Category: Flutter Getx
Flutter the following _CastError was thrown while handling a gesture
You may see this error The above error happens when you try to use Get.dialogue() from Getx package. Specially when you try. to use onTap() and Get.dialogue() together. Reason You did not wrap your app using GetMaterialApp. See the code below Learn how to use Get.snackbar()
Null check operator used on a null value | Getx get_state
If you forget to inject controller in Getx flutter, then you will get below error So all you need to do is to inject the controller (dependency injection)before you run your MaterialApp() In the above photo you can see that, I am using Get.lazyPut() to inject the DataClass controller.
Replacement for pushReplacement() in Getx
If you want to do pushReplacement() in Getx flutter, then you need to use one of the below
Getx or BLoc for Flutter?
Getx is much easier and beginners friendly. With Getx you just need to know about some basic concept like GetBuilder, Obx, obs, Update() and some routing functions. And that’s all. With BLoc you must understand what is stream, sink, Provider and things like that. But these things are hard for beginners to grasp and it…