Questions tagged [flutter-getx]

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

1530 questions
6
votes
1 answer

Flutter and Getx State Management - List View Changes

Creating one Shopping App using flutter with Getx State Management. I don't know how to create a controller for each element in the list. So that, any changes in the particular element in the list it will reload only that element not the entire list…
Nithish
  • 103
  • 1
  • 6
6
votes
5 answers

how to make a list observable with getx in flutter

I was watching tutorials on using Getx with APIs. after setting a controller for fetching data. we declared a list variable and made it observable(obs). but the list format was deprecated. can you help me how can i do it now. var products =…
Atmane AYOUB
  • 71
  • 1
  • 1
  • 4
6
votes
1 answer

EXCEPTION CAUGHT BY IMAGE RESOURCE SERVICE - Crashlytics non-fatal error - http request failed

I am trying to load list of products and I am using CachedNetworkImage (or if I also use Image.network) to display image of that particular product. I have used Error Builder property so that if image is giving error then show default asset image…
6
votes
1 answer

How to use GetX Flutter to get app status if acive or minimized in the background

If a custom getx controller for a widget is having counter increment based on timer runs every certain seconds. The problem is that the counter increment function keeps running even if app is in the background or screen locked. I know how…
6
votes
2 answers

How to create alert dialog with text field using GetX in flutter

I am able to create popup dialogs using Get.defaultDialog() function. I could not find a method in GetX for creating custom alert dialogs. I am using the function below to achieve that which uses native flutter showDialog api. showDialog( …
5
votes
4 answers

Flutter - How to position snackbar above system navigation bar

I have a transparent system navigation bar in my application. Getx snack bar is used by the app to throw errors and success messages. What I'm stuck with is that anytime the app throws a snack bar, the snack bar appears and disappears through the…
Febin Johnson
  • 277
  • 1
  • 6
  • 21
5
votes
6 answers

Flutter GetX Re-Initialise GetX Controller Reset GetX Controller, Reset GetX Controller Values

I am learning Flutter GetX to my own and stuck on a point. Actually I want to know why onInit method of GetX Controlled is not calling whenever I revisit that page/dialog again. Suppose that I have dialog with a simple TextField, a Listview the…
Java Nerd
  • 137
  • 1
  • 4
  • 17
5
votes
3 answers

What is the difference between getx and riverpod?

I want to know what is the difference between getx and riverpod. I am so confused about which one of these two state management tools I will use in real projects.
Atul maurya
  • 51
  • 1
  • 3
5
votes
1 answer

How can I load a specific url page using Firebase Hosting for Flutter Web

I'm using Getx for navigation which internally uses Navigator 2.0. I'm unable to load a specific URL when I Host in Firebase Hosting. It seems to be working fine locally. I'm using Url Path Strategy to remove the #
entangled
  • 83
  • 1
  • 9
5
votes
1 answer

Firebase Document Fields are getting Deleted

For some time now, I have noticed that the fields of some of my firebase documents get deleted, even though I do not delete them or write any logic on my app to delete fields of a document or a document itself. This is a picture that shows a…
5
votes
1 answer

Why this "Null check operator used on a null value error" coming in Flutter

I'm using GetX for bottom sheet purpose. i used this below code to implement the functionality. when i press the (i)-info icon i want the bottom sheet to pop-up but instead i'm getting this error. The following _CastError was thrown while handling a…
5
votes
4 answers

flutter visitChildElements() called during build

I am trying to create a download functionality which downloads files from url in to phone storage and i made a widget to display if the download starts and also the progress counter to be displayed using getx obs final ApiServiceController…
Brightcode
  • 660
  • 9
  • 27
5
votes
3 answers

send data through arguments with GetX

is it a good practice to send data with arguments in flutter using GetX (or any other way)? i mean is it good for performance and ram capcity ? ... like this example: Get.toNamed(AppPages.servicesDetails, arguments: [service]); when (service)…
Osama Mohammed
  • 2,433
  • 13
  • 29
  • 61
5
votes
1 answer

Flutter Getx doesn't update String

I try to check GetX package. And i'm stuck with updating String.obs Here is sample code: import 'package:flutter/material.dart'; import 'package:get/get.dart'; class MyController extends GetxController { var name = "JOHN".obs; var age =…
Kozubi
  • 529
  • 3
  • 12
5
votes
3 answers

Flutter GetX controller not calling method when revisit the app screen

I am new to the Flutter GetX package and facing problem when using the flutter GetX package. I have several app screens where one screen for listing all the products from the database. In my product controller, I am fetching all the data from the…
Akash khan
  • 861
  • 13
  • 25