Questions tagged [flutter-getx]

GetX is a state management, dependency injection, and route management solution for Flutter.

1530 questions
0
votes
1 answer

How to declare a reactive firebase user using getx package

I want to declare a FirebaseUser (from the firebase_auth package), in a reactive way. Rx firebaseUser = Rx(); But Rx() give me the error "1 positional argument(s) expected, but 0 found". Any work around ?
Clid3
  • 9
  • 3
0
votes
1 answer

How do I get the address as soon as possible?

I am deveoping an app in Flutter using GetX state management, but having a difficult time getting address from GPS on the spot. I am using Geocoder and geolocator to fetch latitude, longitude, and address based on coordinates. I have a…
user2827326
  • 61
  • 2
  • 8
0
votes
1 answer

SliverList and Getx StateMixin support

I'm struggling trying to make a GetxController work with a SliverList. In particular, my controller returns the view state with StateMixin from Getx library. class ItinerariesByCreatorPageController extends GetxController with…
Nicola Gallazzi
  • 7,897
  • 6
  • 45
  • 64
0
votes
3 answers

setState() or markNeedsBuild() called during build when usnig Get.toNamed() inside FutureBuilder

Using flutter 2.x and Get package version ^4.1.2. i have a widget like so: class InitializationScreen extends StatelessWidget { @override Widget build(BuildContext context) { return Scaffold( body: FutureBuilder( future: …
joe_inz
  • 998
  • 2
  • 13
  • 30
0
votes
1 answer

Flutter Getx vs grouped_list : setState() or markNeedsBuild() called during build

When I would like to use Getx controller to fetch data and use grouped_list to display it to be a group list, cause I want to make my shopping cart to be grouped. but I got below error, anyone can help on it? thanks. Code below: class CartList…
Waytoon
  • 1
  • 1
  • 1
0
votes
2 answers

flutter - does not refresh listview builder after new data added to list

i am developing an app and it has a page; users can write comments. what i want; users added their comments after listview should be refreshed. Added my addComment function. MyController var isLoading = true.obs; var addModel =…
jancooth
  • 555
  • 1
  • 10
  • 25
0
votes
1 answer

flutter bottom sheet freezes the app UI without showing any errors on the console

When I click on the button that should display my bottom sheet, The app UI freezes, and the console displays that bottom sheet has been opened =>OPEN BOTTOMSHEET: 819031530 without any errors. my bottom sheet widget is pretty complex. I am using get…
0
votes
3 answers

type 'List' is not a subtype of type 'List'

I use dio with getx to get list of todo data but I see this message type 'List' is not a subtype of type 'List' when i go reach this line List responseBode = rsp.data['data']; what is happen in this line and how to fix it ,…
user1080247
  • 1,076
  • 4
  • 21
  • 51
0
votes
2 answers

Flutter GetX initialise translation source from a remote server?

I'm trying to use getX as flutter state management tool. GetX has its way handling language translation. One thing that I'm not sure is how could I initialise translation source from a remote server instead of hard code the translations. In such a…
Nero
  • 1,555
  • 1
  • 13
  • 28
0
votes
1 answer

How to make User Id as document id in Flutter using Firebase with the help of Getx Package?

With all the hype of Getx, I choose to use it in my first ever project, unfortunately, there aren't many tutorials about getx compared to others. This is my first build, how can I create a user id as a document id, I am following MVC pattern and…
0
votes
1 answer

Break out code to method argument (Dart + Flutter + GetX)

How do I break out "myEditMyProfileController.initFullName" and "myEditMyProfileController.tempFullName" to Method argument the controllers is GetxController and initFullName/tempFullName is String...? (I use GetX + Flutter + Dart) Container…
0
votes
2 answers

Flutter: Dipose HTTP request on close controller

Original Answer I'm using the Getx State Management on Flutter. Simplifying as much as possible: I build a GetxController to control my Page, and in this controller i have a StatefulWidget instance that evoque http requests. class MyController…
Patrick Freitas
  • 681
  • 1
  • 5
  • 18
0
votes
1 answer

A value of type 'Rx>*>*' can't be assigned to a variable of type

I am learning Flutter and GetX. I have got Model: class SectionsDBStat { int notificationsTotalCount; int notificationsWaitingForProcessing; DateTime notificationsLastArchiveDate; SectionsDBStat({ required…
Dmitry Bubnenkov
  • 9,415
  • 19
  • 85
  • 145
0
votes
2 answers

How to save the state of a var using getX in flutter?

Screenshot: Text Recognition Page The text detected from an image is saved in "var resultTxt", how can I save the state of all the lines detected by the ML model and use it on another page? Text Recognition Code: doTextRecog() async { resultTxt…
ashrrith
  • 7
  • 5
0
votes
1 answer

How to update Widget with changed File variable using GetX

I have following widget in my app: @override Widget build(BuildContext context) { return Scaffold( bottomNavigationBar: BottomAppBar( child: Row( crossAxisAlignment: CrossAxisAlignment.center, …
laxsore
  • 143
  • 1
  • 2
  • 9