Issue I’ve got a search-field in the appbar of my application. It’s available on every page of the app. When something is selected in the seach-field, it routes to a named page that loads and displays details about the entity.
Continue readingTag: flutter-getx
How to work with GetX Observable Variables?
Issue I have a simple timer app whose UI includes this code snippet: body: Center( child: Column( mainAxisAlignment: MainAxisAlignment.center, children: [ Container( width: 120, height: 120, child: Obx( () => CircularProgressIndicator( value: <== This is what I’m asking about, ),
Continue readingHow to change the value of 'selectedIndex' from one dart file to the other dart file using flutter GetX?
Issue I have my custom Bottom Navigation Bar in one dart file, i.e. bottomnavbar.dart. And I have list of multiple screens(or pages) in my home.dart file. I am using an .obs variable to store my selected index value. code from
Continue readingHow can I make dropdownbutton using Getx in flutter?
Issue I’m trying to make dropdownbutton using Getx in flutter However, it doesn’t work. Even if I choose a value, the value does not been selected. class BecomePlayerPage2 extends GetView<BecomePlayerController> { const BecomePlayerPage2 ({Key? key}) : super(key: key); @override Widget
Continue readingGetx oninit dont replace values – Geolocator
Issue I was testing a code on my Android device but in the replacement part of the code in the terminal it prints the previous values and not the values changed in the getPosition(). CODE WITH GEOLOCATOR import ‘package:geolocator/geolocator.dart’; import
Continue readingHow to use GetxController inside my view without removing the const keyword on the constructor
Issue using Getx, when I have a GetxController and I want to use it inside my view UI, it required removing const on the widget constructor : Controller : class TestController extends GetxController { // … } View : class
Continue readingFlutter app UI disappears after restarting once in apk release
Issue After downloading the app through the apk release, in the first time, it works normally. But once you close the app and open it again, the ui elements disappears. It has a very strange behavior, if I restart the
Continue readingFlutter Getx argument is never reset
Issue I am working with flutter and trying to use Getx package for passing arguments between components and my problem is that the arguments are never put to null after use. As the component i am navigating to’s view depend
Continue readingCall api after bage build in getx
Issue Im using getx and i want to call api after bage build, because this api its not necessary part of the page build.. What i know is this way @override void initState(){ super.initState(); WidgetsBinding.instance.addPostFrameCallback((_){ }); } But what about
Continue readingHow to localise CupertinoDatePicker in flutter and getxcontroller
Issue During my search I found some regular solution when no GetXcontroller included, like this https://stackoverflow.com/a/53752290/19815795 Taking above as inspiration, I created some code for my GetMaterialApp: GetMaterialApp( theme: AppTheme(), translations: Language(), locale: getCurrentLocale(), fallbackLocale: Locale(‘en’, ‘US’), supportedLocales: [ //
Continue reading