Questions tagged [flutter-getx]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
13 views

How to use theme animation duration and curve in GetMaterialApp?

i am using getX package, and i have replaced MaterialApp with GetMaterialApp in order to use getX screen navigation, but it seem that the properties themeAnimationDuration and themeAnimationCurve does ...
Aboubakr Belmiloud's user avatar
1 vote
0 answers
15 views

slow application startup in flutter Getx

I have application that I have been made it by get x state management 
and I added general binding class to inject all necessary classes in my project (
repository/remote data datasource/local data ...
Hassan Hallak's user avatar
-1 votes
0 answers
19 views

what is the different between onInit that is in getX package and initState that is in in flutter

I learn a flutter and getX and I want to know what is the different between initState function and onInit functoin in flutter In knew that initSate is the first function work when program or screen is ...
Adham Anwar أدهم أنور's user avatar
0 votes
0 answers
11 views

Flutter getx using dialog in mvc

GetPage( name: AppRoutes.NEW_TRIP_REQUEST_DIALOG, page: () => NewTripRequestDialog(), transition: Transition.leftToRight, binding: BindingsBuilder(() { Get.put(NewTripRequestDialogController( a: ...
Deniz's user avatar
  • 33
0 votes
1 answer
24 views

Flutter: How to update locale in GetxController

my splash code this class App extends StatelessWidget { const App(); @override Widget build(BuildContext context) { Get.put(SplashController()); Get.put(ThemeController()); Get.put(...
Artin Yunesi's user avatar
0 votes
1 answer
21 views

"FoodHistoryControllerImp" not found. You need to call "Get.put(FoodHistoryControllerImp())"

I have the following code I cant figure out whats wrong even tho im using the same exact way in other pages and its working fine the Get injection is injected fine as you can see in the picture below ...
Toxicless's user avatar
0 votes
1 answer
37 views

Getx controller cant dispose

i create a function to cek user, from API to check user login or not. i use this because my API is not realtime. this my code for funcheckuser void funfetchUser() async { print('get user'); ...
StarsHat's user avatar
0 votes
0 answers
33 views

StackOverflow error when update a Observable List using Flutter with GetX

I'm creating a screen where the user can answer multiple questions. These questions are called "protocols," so they can answer about their sleep time and pain. I fetch a list of protocols ...
maremaFNX's user avatar
0 votes
0 answers
24 views

routerConfig parameter not defined for GetMaterialApp flutter

I have to use GetX for state management in an application where I have been routing with autoroutes. I have returned this in my main.dart file - MyApp class. class MyApp extends StatelessWidget { ...
prabinlamsal19's user avatar
0 votes
1 answer
18 views

GetX wrong initialization place of widget data

I am using GetX. I need to generate data for list visibility. class TableController extends GetxController { List<bool> columnVisibility = []; @override void onInit() async { ...
Dmitry Bubnenkov's user avatar
0 votes
0 answers
41 views

Flutter with Getx package - Null check operator used on a null value

I am building an app to display data of medical providers store in Firebase realtime database. I use Getx for state management. I have a listview to display all of the available categories. when I ...
Roj ALi's user avatar
  • 37
0 votes
0 answers
14 views

Injection does not work when GetBuilder is in parent class

I have a parent class where I define the generic behaviour of a widget type. Each child class implements a method where it returns its controller (GetxController) and another one where it returns the ...
PinTxO's user avatar
  • 61
1 vote
1 answer
42 views

Flutter GetX's GetConnect not connecting to http on android

I have a Flutter/GetX project that successfully calls http REST APIs from iOS, but does not work from Android. My AndroidManifest.xml file appears as follows: <manifest xmlns:android="...
Randy Leonard's user avatar
0 votes
0 answers
17 views

exception occur with the future builder and binding.dart

Exception has occurred. _AssertionError ('package:flutter/src/foundation/binding.dart': Failed assertion: line 146 pos 12: '_debugInitializedType == null': is not true.) it is throwing this error but ...
HELL unknown's user avatar
0 votes
0 answers
10 views

How can I get updated value of email from AuthController class and show it in drawer in Flutter using GetX?

I am trying to get the controller value in another class which is email, in Sign in class I have Texteditingcontroller of email and trying to get the updated value of email to show in drawer, but can'...
iAliMalik's user avatar
3 votes
2 answers
24 views

How to make flutter screen unclosable?

I am working on a flutter application, where I made my custom loading bar, so whenever I set the value of loading bar *true, it shown up. But the main problem is, when I hit the back button, It goes ...
Aman Programmer's user avatar
0 votes
1 answer
22 views

Custom BackButton in AppBar is Shown Even When the Screen Cannot Pop

I'm facing an issue with adding a custom leading back button to AppBar. Adding the button was the easy part, but when I added it, it was displayed all the time. It does not matter if there is a screen ...
ASAD HAMEED's user avatar
  • 2,028
3 votes
2 answers
130 views

Flutter GetX updating locale is resetting GoRouter navigation bug

I am using GoRouter for navigation and GetX for multiple things, including updating the app's locale. It is updating the language perfectly fine, but the problem is that somehow my navigation stack is ...
Chris's user avatar
  • 1,585
0 votes
1 answer
24 views

How to display markers using GetX?

So, I have a Flutter app that's using mainly these packages: flutter_map, get, LatLng2. I'm using GetX as a state management and my goal is to get data from a rest api, and display this data into the ...
Mikelenjilo's user avatar
0 votes
1 answer
22 views

Passing and Receiving Arguments Using Getx

I'm trying to pass arguments when moving from one window to another using Getx routing. During the transition, I pass one Uint8List: Uint8List jpeg = Uint8List.fromList(img.encodeJpg(image)); Get....
Sergei Zhilinski's user avatar
0 votes
2 answers
32 views

How can i fetch data from an API using the OBX functionality in flutter

I already tried this code but it doesn't seem to work properly as the Users.value remain empty even after the data has been fetched good from the API ( i printed the http response and it showed the ...
Chinegami's user avatar
0 votes
1 answer
39 views

Flutter Getx theme change textColor not working

I want to use light mode and dark mode in my application. I decided to use getx themes for this. When I switch to dark mode, scaffold color and app bar color change, but text color doesn't change. ...
Tahaylmz's user avatar
0 votes
2 answers
37 views

Unhandled Exception: setState() or markNeedsBuild() called during build

I get this error when build the page: E/flutter ( 6971): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: setState() or markNeedsBuild() called during build. E/flutter ( 6971): ...
tva3777's user avatar
  • 61
0 votes
0 answers
24 views

invalid online address in Flutter&GetX [duplicate]

I upload image to Firebase Storage. (Firebase Storage created a Url for this image.) I created a field called ImageUrl in a document. And I saved this Url in document. In App, I get documents and I ...
Ozan's user avatar
  • 51
0 votes
1 answer
62 views

cant install get_cli i guess error is with posix package and pwd.dart

Building package executables... (24.4s) Failed to build get_cli:get: AppData/Local/Pub/Cache/hosted/pub.dev/posix-4.1.0/lib/src/pwd.dart:322:35: Error: Field 'name' cannot be nullable or have type '...
Taher's user avatar
  • 3
-1 votes
0 answers
22 views

Save the order of the cart of the flutter application made with getx in a database of type mysql

I have a mobile application developed with flutter and getx, but I can't save the orders in the cart in my mysql database so that the adminitrator can see all the orders. Here is the complete code of ...
Rubens Alban's user avatar
0 votes
2 answers
81 views

Unable to read Query Parameters Using GetPage - Flutter

I'm using GetMaterialApp.router from getx as I have used it to handle navigation in my app, but surprisingly it does not provide the same set of parameters as MaterialApp.router. Nevertheless, I added ...
ASAD HAMEED's user avatar
  • 2,028
1 vote
1 answer
64 views

CastError (Null check operator used on a null value) FLUTTER ERROR using REST API

I'm trying flutter and I'm newbie at this, I have a problem when I login with API SERVICE(im using Rest API https://reqres.in), the login says _CastError (Null check operator used on a null value) ...
Lance Banter's user avatar
-2 votes
0 answers
26 views

I face problem with the package Getx in flutter

I get this error when I add the package and want to run it Error: Can't declare a member that conflicts with an inherited one. bottomsheet.dart:128 _GetModalBottomSheetState get createState => ...
Cedric Houngbedji's user avatar
0 votes
1 answer
26 views

A TextEditingController was used after being disposed when opening another instance of same page is opened

I have a page called SearchPage(). Following are the brief code of that page's controller class SearchPageController extends GetxController { final searchTextController = TextEditingController(); ...
WatsMyName's user avatar
  • 4,188
0 votes
0 answers
24 views

How to reset value stored in local storage by Get Storage after a set time interval for example 1 day?

`var toBeResetValue = 3.4; var storage = GetStorage(); storage.write("value", toBeResetValue);` //After 24 hours or set interval the value stored goes to 0 instead of 3.4. How to proceed ...
yash 's user avatar
0 votes
1 answer
25 views

Flutter&GetX, firebase auth signout is giving permission-denied error

I got this error in my app when I sign out with FirebaseAuth.instance.signOut() function. Im using flutter&GetX. I guess I have to cancel which codes is probably still keeping stream to my queries ...
Ozan's user avatar
  • 51
0 votes
1 answer
28 views

Flutter - Get.changeTheme only works in ios simulator

this is a very strange behaviour. I have four different themes. In my controller class Controller extends GetxController { .. I set my current theme on event using my controller final Controller c = ...
Nik Rubblers's user avatar
0 votes
0 answers
20 views

Screen overflowing when keyboard appears over dialog in Flutter even after using singlechildscrollview

Here's the code where I'm opening a dialog on click of FloatingActionButton: FloatingActionButton( elevation: 4, onPressed: () { ...
Gaurav Singh's user avatar
1 vote
0 answers
52 views

Rx{Type} vs Rx<Type> vs .obs in GetX state management library of Flutter

Per the documentation: You have 3 ways to turn a variable into an "observable". The first is using Rx{Type}. // initial value is recommended, but not mandatory final name = RxString(''); .....
Aquarius_Girl's user avatar
0 votes
0 answers
12 views

I have three controllers extended from Getx I would like to build view with them in one page but I only allowed to use one controller

`I tried to use If statement and pass the controller in every statement, But I only can get items from one controller. I also tried to make in column with separated builder, I can now see all my ...
Abdelrahman Moataz's user avatar
0 votes
1 answer
22 views

value otp screen cant save in the contoller

this my otp field i use flutter_otp_text_field: ^1.1.1 how to save value otptext field to my controller OtpTextField( numberOfFields: 6, ...
StarsHat's user avatar
2 votes
1 answer
45 views

Navigator between pages by Flutter Getx

When moving from page to page via getx and repeating the same page, on the second page it maintains the same state of the controller on the first page. When the same page is repeated, I want to create ...
Mohammed's user avatar
  • 123
0 votes
0 answers
31 views

Obx not working on top of GetMaterialApp in Getx

I am trying to achieve Firebase authentication with the help of 2 separate GetPages. If the User is logged out i must get authenticationPages and if user is logged in i want to have authenticatedPages ...
Pranay Avvaru's user avatar
0 votes
1 answer
22 views

flutter - cartscreen and total price

I want to display the total price on the button like this "buy now $15" $15 is the total price, now I'm confused about how to do it, I've tried it but the results are not what I want. this ...
Raka Putra's user avatar
0 votes
0 answers
55 views

Getx package GetConnect() how to add body to get request?

I am using Getx package for my api calls, the object GetConnect(). I want to add a body to a get request but I could not find any parameters for it. final connection = GetConnect(); var response = ...
aoiTenshi's user avatar
  • 527
0 votes
0 answers
54 views

firebase permission-denied when I log out

I am using Flutter GetX. I got permission-denied error. I don't know what I should do. I researched a lot this issue but I can't find anything. I am so new about flutter & firebase. I could not ...
Ozan's user avatar
  • 51
0 votes
1 answer
60 views

App with Flutter/Dart and GetX: ListView.builder does not update itself with new values from database

I have programmed an app with Flutter/Dart and the GetX framework. On the HomeScreen the content from the database (ISAR DB) should be displayed in the form of card widgets. If you click on the FAB in ...
myyvee's user avatar
  • 95
0 votes
1 answer
29 views

middelware GetX Flutter is not working with me

i have Middelware with GetX in flutter but its not wrorking with me i dont know what is the issue this is my Main file import 'package:flutter/material.dart'; import 'package:gettest/middelware/...
mohammed bamlhes's user avatar
0 votes
0 answers
38 views

How to use GetX Navigation from a Page to itself with different controllers

I am using Getx MVC and named routing, I want to navigate to the same page again and create new controller. I made the preventDuplicates as false which is letting me open the same page again, but it ...
Fiveone Digital's user avatar
0 votes
0 answers
34 views

Flutter check list is not updating

I have a list that has a behaviour that i tried to make it look like a check box. The code snippet is as follows. Im using Getx for state management and the widget is denoted with a Obx. Code Snippet *...
james_young's user avatar
0 votes
1 answer
55 views

AssertionError ('package:flutter/src/widgets/framework.dart': Failed assertion: line 5403 pos 14: '_dependents.isEmpty': is not true.)

I have created login page, in that login page I have used get x package. In login page I am creating text form field using form widget and have assigned global key to it -> var formKey = GlobalKey()...
Chinmay's user avatar
0 votes
0 answers
13 views

Different hasCodes for the same Controller

When you first log into the program, everything works fine. I have Products in the app. These products can be added to the cart. I log in to my account. I add a product to the cart. I go to the ...
Alakba's user avatar
  • 178
0 votes
1 answer
60 views

GetMaterialApp added, showing error on showErrorSnackBar

I have already added my GetMaterialApp in my main.dart but I am getting error in my common.dart. The error is _CastError (Null check operator used on a null value) in line 3. The heading has null ...
wuuyungwuu's user avatar
1 vote
0 answers
58 views

why the flutter listview is not updating if it places in obx while the data in modal and controller is updating

in view file the controller is initialized as SelectCalenderController selectCalenderController = Get.put(SelectCalenderController()); Here is the code for view file listview builder Obx(() ...
Ayush Gupta's user avatar

1
2 3 4 5
30