GetX is a state management, dependency injection, and route management solution for Flutter.
Questions tagged [flutter-getx]
1530 questions
0
votes
1 answer
how to update selected radio button in flutter using getx
I am using Flutter with GetX plugin and I have three radio buttons inside statelesswidget but the radio button doesn't changed to selected when user click on it so my question is how I can update the selected radio using GetX plugin. here is my…

Muhammad Luqman Asif
- 21
- 3
0
votes
2 answers
Stream not updating when docId is changed dynamically
The streamDemo() is not updating the value of doc('$mainDocId') when the value of mainDocId is updated dynamically. I want to update the widget HomeBody() when the document Id is changed dynamically so that I can retrieve the data as per documents…

Raj A
- 544
- 9
- 21
0
votes
1 answer
type 'Future' is not a subtype of type '((GetXState) => void)?'
I am working on a flutter project with GetX features in it but certainly I got some irrelevant and also according to me surprising error which is mentioned above.
the first error causing code is
import 'package:flutter/cupertino.dart';
import…

yogender
- 202
- 3
- 12
0
votes
0 answers
Cannot decode server response to json Flutter
I'm trying to send a nested object to the server with GetConnect. However, after many attempts I fail to do so. I look onto Flutter Docs; nevertheless, it use the same JSON.decode as I am. The content type I set up for the backend is…

Kaiser Senpai
- 1
- 1
- 1
0
votes
2 answers
Can't retrieve a Stream List of map from cloud firestore for flutter using Getx Statemanagement [Updated]
I'm trying to retrieve a stream List of NewsModel from cloud firestore but ultimately failing. Codes and images are as follows.
I have a collection 'news' > document 'USA' > field list. // list is an array which contains list of map. I want to…

Raj A
- 544
- 9
- 21
0
votes
1 answer
I am using Getx for statemanagement, when I add data to server it doesn't appear newer data in listview until hot restart while list view is in Obx
I am working on an app. It's working fine with the rest API to get data from the server. But when I try to add data to the server newer data doesn't appear in the list. Here is my code for view and controller class.
View class code. It is in…

Mudassar
- 1
0
votes
1 answer
Flutter Stepper - BoxConstraints forces an infinite width
I trying to create Stepper, This is my code and I took it copy paste from flutter doc:
class AdFormView extends GetView {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title:…

Abdallah El-Rashedy
- 751
- 1
- 10
- 19
0
votes
1 answer
firestore: how to check if a document exist
I have a collection admins in my firestore, where i add document IDs of users with admin roles.
In other to grant users admin role, i need to check if their users ID (documentID) is found under admin collection.
here is my code:
isAdmin() async…

Clid3
- 9
- 3
0
votes
1 answer
widget doesn't update when another controller state changed using getx
Describe the bug
I have two controllers ,the first one is LoginController which is to save user login state , the second is settingsController to manage app settings , I have a switcher button in the Settings widget to change user status…

user1080247
- 1,076
- 4
- 21
- 51
0
votes
1 answer
Flutter GetX State Management on button click
Am fairly new to flutter using GetX. I have MainDrawer stateful widget which has two widgets for two accounts personal and business, in my HomePage() i have TextWidget displaying the name of the account selected..
i want to use controller or any…

Jon-ElCapitan
- 59
- 7
0
votes
2 answers
How to send Data to a controller while navigating to a view
I have this route
Get.toNamed('/community/discussion/${controller.community.topicId}}');
While navigating to the view, I want to pass the route parameter topicId to the view's controller so that it uses as document ID and load the content which…

Clid3
- 9
- 3
0
votes
2 answers
Don't clear text input and validate error massage when navigate back
i'm using getx for state management. After type text or display an error message of textFormField, then i navigate to another screen. When i navigate back to this screen, i want to clear text input and error message, because this screen was not…

hungnv
- 23
- 3
0
votes
1 answer
State manager is rebuilding widget continuously instead of on update, how to eliminate this? Flutter
So I'm having trouble sorting out how to dynamically add data to my DataGrid. I'm getting help from Syncfusion support who have been phenomenal so far. However I still haven't been able to get full and proper functionality.
I am using GetX…

RobbB
- 1,214
- 11
- 39
0
votes
1 answer
'Null' is not a subtype of type 'LoginController' in type cast in GETX Flutter
I am using nullsafety and following code produce error . The error is type 'Null' is not a subtype of type 'LoginController' in type cast.
home: Obx(() {
if (controller.authState == "Authenticated") {
return HomeView();
…

Sumit Kumar
- 678
- 4
- 19
0
votes
2 answers
How to control null when bulding widget
Can you tell me how can I include the condition for Image.file on the following page? I would like to build it only when controller.image is not null.
I got an error:
The following NoSuchMethodError was thrown building Container(padding:…

laxsore
- 143
- 1
- 2
- 9