Questions tagged [flutter-getx]

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

1530 questions
-1
votes
1 answer

how to get updated live data to variables passed through constructor?

i'm struggling to find a solution to my issue, i hope you guys can help. in (PAGE 1) i have Streambuilder and i'm forwarding data to (PAGE 2) through the constructor and then to (PAGE 3). now (PAGE 1 receives stream of live data that updates…
-1
votes
1 answer

Flutter Getx not able to add item to cart in a shopping app

I am trying to add items to a cart in a shopping app using Flutter and GetX. I first created repositories and controllers and models, everything works pretty fine unless I am not able to pass the clicked object into the add function. I can access…
Fedy Belaid
  • 157
  • 11
-1
votes
1 answer

How to create the multi instance of tab controller in flutter using getx?

Currently I was working on flutter using getx, Is there any ways to create multi-instance of Tab Controller in it. I am expecting to create multi-instance of Tab controller.
Lakshman.S
  • 61
  • 1
  • 8
-1
votes
1 answer

Why can't I use Getx package services?

enter image description herei added the getx package to my pubspec.yaml file and import the 'get/get.dart' in main.dart but when i want to use getPages, i cant and it gives an error I don't know what to try because I don't know much about getx…
-1
votes
1 answer

How to implement all types of APIs request in Flutter GetX

I want to implement all the type of HTTP request in a API using Flutter GetX state management. I have managed to do the "get" request. I want to implement all the type of HTTP request in a API using Flutter GetX state management.
-1
votes
1 answer

Flutter - My widgets keep getting rebuilt and making http request every time

In my app I have an index screen with some bottom nav that can show or go to another screen on click using setState to change the _selectedIndex and the screen are in a list class IndexPage extends StatefulWidget { const IndexPage({Key? key}) :…
Brightcode
  • 660
  • 9
  • 27
-1
votes
1 answer

Dispose the controller when navigating to same page

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. It is also possible to use…
Barsum
  • 128
  • 1
  • 2
  • 13
-1
votes
2 answers

how to fetch data from firebase flutter?

Here is my model and I wanna store this data in a list ,using getx .null safety method is on. var productlist = [].obs; Productmodel.frommap( DocumentSnapshot snapshot) { id = snapshot['id']; productname =…
-1
votes
1 answer

GetX usage in flutter

Trying to use GetX framework to implement Global state management system, but it's not getting update inside the Widget as soon as the state value updated.
skw.success
  • 49
  • 1
  • 5
-1
votes
1 answer

Using Getx to update a Listview Builder state

I'm trying to manage the state of a button in between switching bottom tabs, but each time I leave one tab to another the state of the button is returned to the initial state here are my code snippets: //this is the function returning the list of…
-1
votes
1 answer

How to change Text color with Get in Flutter

How can i change my Texts color immedietly TextStyle get headingStyle { return GoogleFonts.lato( textStyle: TextStyle(fontSize: 30, fontWeight: FontWeight.bold), color:Get.isDarkMode?Colors.white:Colors.black); } color changes when i…
-1
votes
1 answer

Exception has occurred. _CastError (type '_InternalLinkedHashMap' is not a subtype of type 'List' in type cast) uisng getx

I TRIED USING MAP TO COLLECT DATA BUT IT DOESN'T WORK EITHER I AM TRYING TO GET LIST OF PRICE FROM REST API USING GETX IN FLUTTER BUT RESULTING TO THE ERROR BELOW SAYING CAST ERROR ON LOADING APP
K'man Amuda Jr.
  • 191
  • 1
  • 1
  • 6
-1
votes
2 answers

favorite icon does not updated using Getx in flutter

//code of the screen ListView.builder( physics: const NeverScrollableScrollPhysics(), shrinkWrap: true, padding: EdgeInsets.zero, scrollDirection: Axis.vertical, itemCount: controller.favDestinationList.length, itemBuilder: (BuildContext context,…
mar
  • 1
-1
votes
1 answer

How can I implement RefreshIndicator in Listview.Builder using Getx?

I want to implement RefreshIndicator in my Listview.builder but the problem is that when I place RefreshIndicator it's not working. And I search in Google the answer that I find is that place physic: AlwaysScrollableScroll() in Listview.Builder and…
-1
votes
1 answer

Flutter Dart How insert value on List

hello all I have an app in flutter and i have List Model I'm new in flutter hello all I have an app in flutter and i have List Model I'm new in flutter class OrderePostModel { OrderePostModel({ this.id, this.itemsTbId, …
iappsd
  • 1
1 2 3
99
100