Issue I am using get package. Here’s what my code looks like, class MyController extends GetXController{ //code to fetch data from firebase } class SecondScreen extends GetView<MyController>{ @override Widget build(BuildContext context) { return GetBuilder( init: MyController(), builder: (controller) { return
Continue readingTag: flutter-getx
PreferredSize and GetX usage
Issue My AppBar has git bottom properties and executing BottomOfAppBar class but flutter ignoring preferredSize in this class. My goal is make AppBar’s height to set 0px if TabBar is disabled. (tabbarenable2 value makes own main goal but I could
Continue readingHow do I observe a value change in a GetxController class and trigger navigation in the statelessWidget class using GetX in Flutter?
Issue Im in a scenario that I need to receive data on a async task, then decide wether to navigate to the next page or not based on the replying. But as far as I know, the state management in
Continue readingError: "Controller" not found. You need to call "Get.put(Controller())" or Get.lazyPut(()=>Controller())"
Issue I have next code. main() { Get.put(NavigationBarController()); Get.put(JobListController()); //… runApp(MyApp()); } I do not use bindings because I do not use GetX routes/pages and use custom tabs-switching. My widget is next: class Dashboard extends StatelessWidget { var jobCtrl =
Continue readingFlutter Slider – Keep it on/off even when user close app & re-visit with Getx
Issue Flutter Beginner needs help. How to keep a slider in is position and maintain is values even when we close the app and re-visit the app using Getx or some other Statemanegment. Folowing this tutorial Flutter Switch i tried
Continue readingFlutter: Refreshing ListView.Builder with GetX
Issue I am creating the List of Cards according to the number of toDoId. toDoController.toDo() is like toDo = [q1, r4, g4, d4].obs; And, this is my ListView.builder() Obx(() { List _todo = toDoController.toDo(); return ListView.builder( shrinkWrap: true, scrollDirection: Axis.horizontal,
Continue readingHow to listen changes inside TextController?
Issue I am using GetX. I need to listen changes in TextController. The follow code do not work: class Controller extends GetxController{ final txtList = TextEditingController().obs; @override void onInit() { debounce(txtList, (_) { print("debouce$_"); }, time: Duration(seconds: 1)); super.onInit(); }
Continue readingFlutter GetX Obx [Get] the improper use of a GetX has been detected. You should only use GetX or Obx for the specific widget that will be updated
Issue I am using GetX and heavily using Obx to build by UI in a reactive way, however, I’ve always stumbled whenever I need to do some processing of my Rx-variables and it ended up with this error: [Get] the
Continue readingFlutter change int state by get
Issue I have a simple website menu on clicking it’s just changing int value and on the basis of int value it’s changing the font color. I don’t want to use setState instead of it I need to use getX
Continue readingFlutter getx – using recative list as argument gives imporper use of getx error
Issue I have GetXController with RxList, When I create widget with the list as argument (and this is the only observerable), I get an error [Get] the improper use of a GetX has been detected. The controller looks like this:
Continue reading