GetX is a state management, dependency injection, and route management solution for Flutter.
Questions tagged [flutter-getx]
1530 questions
0
votes
1 answer
Converting to GetX raises issues
I am converting my flutter app to use GetX rather than provider and during the conversion I am getting some errors that I don't know how to correct.
First error:
In my data model, AgentsModel, I am getting an error in the method…

LostTexan
- 431
- 5
- 18
0
votes
2 answers
When i try to update textfield by entering some text after i clicked done button from keyboard the new edited text will be erased
the data fetch from api overrides the new edited text while entering done button from keyboard.
TextFormField(
controller: profileController.updateBusinessphoneController..text='${profileController.profileData[index].phoneNumber}',
decoration:…

Hira Kauchha
- 79
- 1
- 7
0
votes
2 answers
Flutter state update for list items
I am using getX for state management in my app. The model files contains a list of items and I want to update to items but the updated value doesn't get updated on being changed.
The code for View:
body: ListView.builder(
itemCount:…

Aman Rawat
- 217
- 3
- 9
0
votes
1 answer
Flutter GetX displaying data from JSON API
ERROR: Expected a value of type 'Response', but got one of type 'RxList'
How can I paste the json into my existing RXList element.
Thx for the help.
I think the problem is that the response is Json and I want to fill in normal text .
I hope anyone…

Felix Jost
- 21
- 1
- 2
0
votes
0 answers
error: The argument type 'Stream>>' can't be assigned to the parameter type 'Stream>'
- >'
I'm extracting two lists from a single stream function to save money by minimizing reads. How can I bind the stream to individual List fields? I'm using Firebase Firestore and Getx State management
The error I'm getting is
error: The argument type…

Raj A
- 544
- 9
- 21
0
votes
0 answers
How to use Animation while managing state (GetX)?
I am struggling trying to figure out how to simultaneously implement animation while using a state management solution (GetX). With this code in the UI:
class _HomePageState extends State with SingleTickerProviderStateMixin {
…

Al C
- 5,175
- 6
- 44
- 74
0
votes
1 answer
Flutter GetX Get.find() returning null in one class, but finding it in another?
I have multiple controllers for my Webpage using GetX. The authController logs the user in and calls the database api to fetch the user from firebase firestore:
await Future.delayed(Duration(seconds:…

Lars
- 1,250
- 9
- 25
0
votes
1 answer
create flutter Drawer by for loop
I'm using GetX in Flutter. I'm tired of having to write like this every time in Drawer.
ListTile(
title: Text('signIn'),
onTap: () {
Get.to(SigninPage());
},
),
So I…

Tatsuhiko Mizuno
- 437
- 6
- 15
0
votes
2 answers
Flutter GetX can't assign Set to RxSet
I am developing an application and came across a problem, which does not cause an error but pretty frustrating for me.
The situation is that I have an RxSet of CustomClass objects with default initialization to empty Set. When I fetch data from the…

Patrik Szabó
- 76
- 6
0
votes
1 answer
[Flutter][Getx][State Management] using StateManagement
Im trying to apply Getx State Management to update my screen(maybe responsive?),
I have read official getx github documents. and this is what I tried.
1. set variables that I want make it responsive to .obs
List blueBan =…

Hajime
- 212
- 3
- 13
0
votes
1 answer
flutter : how to bind hive watching into RxList object in getx
I am using hive and getx together, I am trying to get all data inside hive with watch method:
Stream
- > watchVocabsFromdb() => hiveService.vocabularyBox
.watch()
.map((event) => hiveService.vocabularyBox.values
…

Cyrus the Great
- 5,145
- 5
- 68
- 149
0
votes
1 answer
Flutter: GetX. Passing form input data to the next page Using GetxController
I have this 3 screen registration forms, the first one requests for Email, Password and Confirm password then the second screen requests for other users information including names, Phone number and address while the last one is the OTP confirmation…

Britchi3
- 180
- 5
- 17
0
votes
1 answer
Flutter Getx Controller onInit method not called on page load
I have built a todo app with flutter, getx and firebase. I have a login page, signup page and the todo page where I show a list of todos. I am using firebase_auth package for authentication and cloud_firestore package for saving and retrieving data…

Pushkar Kastoori
- 33
- 4
- 8
0
votes
1 answer
The getter 'ws' isn't defined - get_server
I am trying to use get_server flutter package for creating a socket server in my flutter application.
According to package documentation, I have tried this example but It gives me errors like The getter 'ws' isn't defined for the class…

Akash khan
- 861
- 13
- 25
0
votes
1 answer
Flutter Getx RxList Product List, Name-Price
i wanna create a Basket with Getx , i defined a values as Name and Price, i wanna add Basic a Product in to Shop Basket. How can i add a String as name or double as Price from Product into PriceModel2 -RxList ?
Product Model-
class PriceModel2 {
…

Koek
- 101
- 3
- 9