GetX is a state management, dependency injection, and route management solution for Flutter.
Questions tagged [flutter-getx]
1530 questions
0
votes
3 answers
Flutter listen to lifecycle events on Stateless Widget?
Is there any solution for listening to lifecycle events for a StatelessWidget when the app is in background / foreground ? There is no StatefulWidget on that particular screen. I am using Getx() controller to observe data changes.

Niaz Ahmed
- 220
- 2
- 12
0
votes
3 answers
Is it a good practice to use models in GetX Flutter to parse JSON data?
Hello there I am creating an application in Flutter and I am receiving JSON response from the API and I know that we need to parse the response to use in the Flutter app but I found that if we use the normal way as:
jsonData['key'] to get and show…

Shoaib Khan
- 830
- 1
- 9
- 17
0
votes
1 answer
pop and push the same route back with different params in Futter (GET X)
I have 2 screens,
Screen one contains a list view with onPressed action on every item
screen two contains the detail of the pressed item as well as a drawer with the same list view as screen one.
What I want to do here is when the user goes to the…

Muhammad Usman
- 2,419
- 1
- 11
- 18
0
votes
1 answer
Splash screen appears with delay
I'm trying to implement the flutter Getx plugin and made some splash screen like this one:
class SplashScreen extends StatelessWidget {
const SplashScreen({Key key}) : super(key: key);
@override
Widget build(BuildContext context) {
return…

i6x86
- 1,557
- 6
- 23
- 42
0
votes
1 answer
PageController.page cannot be accessed before a PageView is built with it
I am new to Flutter and Getx I created a bottom navigation bar but I am getting the error when I navigate to pages.
ERROR: Failed assertion: line 180 pos 7: 'positions.isNotEmpty': PageController.page cannot be accessed before a PageView is built…

Muhammad Usman
- 2,419
- 1
- 11
- 18
0
votes
2 answers
How to Change Screen Using Flutter Getx
I Got Questions here. How to change screen using FLutter Getx. I got GetxControll that searchUser from firestore. Here's the code.
class AuthenticationC extends GetxController {
final usersRef =…

Megat Emran
- 1
- 1
- 3
0
votes
3 answers
How to Show image after using camera using Getx Flutter?
How to Show image after using camera using Getx Flutter? it show AssetImage('assets/images/kad.jpg') but after take picture it not show the picture from camera.. please help me
imageController.dart
class ImageController extends GetxController {
…

Megat Emran
- 1
- 1
- 3
0
votes
1 answer
How to update the ListView after a new object has been inserted into list?
I tried to use GetBuilder to update the state but is not working.
The new object is visible in the list if I perform a hot reload, but the page is not populating with the new items. Should I reload the page or should I use reactive Observable?
Also…

Cristian
- 348
- 2
- 14
0
votes
1 answer
google_fonts in a ThemeData - fonts not being applied
I'm trying to add a couple of google_fonts to a ThemeData. All of my theme is being applied, except that the google fonts are not. Why is this? Here is my project setup:
The theme:
import 'package:flutter/material.dart';
import…

BeniaminoBaggins
- 11,202
- 41
- 152
- 287
-1
votes
1 answer
Error fetching data by GetX. Error on model define or else
I need to fetch Category Data from my custom made API. I create a model, controller for fetch data from API with help of getx, but it give me error. I don't know what is the problem. Can anybody help me out please?
Here is my Category_slider.dart…

MUHTASIM JEET
- 3
- 2
-1
votes
1 answer
While fetching data from firestore in Getx for routing it says Null check used on a null value
I am using Getx package in flutter and using Firestore to store my data. here is my main.dart
GetPage(
name: '/ApartmentDetailedPage/:propertyName/:reraId',
page: () => ApartmentAdviserDetailedPage(),
transition:…

hemanth_101
- 33
- 6
-1
votes
1 answer
Is there any way to make GetX navigation to use cupertino page route instead of material page route
I want my app to have that ios smooth slide in page transition, and I was able to achieve that when I use the native Navigation API provided by flutter, the only thing I should do is to pass a CupertinoPageRoute instead of a MaterialPageRoute, but…

black-purple
- 29
- 1
- 3
-1
votes
1 answer
Flutter GetX - Connect API to UI
I am trying to integrate API with UI in Flutter using GetX. But while retrieving the product from the JSON file I got the below errors.
Error: The parameter 'id, title, description, price, discount, rating, stock, brand, category, thumbnail, images'…

Priya
- 67
- 6
-1
votes
2 answers
why my page route is not working properly?
InkWell(
onTap: () {
Get.put(
DetailsPaymentHistoryController(
paymentHistoryApi: PaymentHistoryApi(),
…

Mehedi Hasan Sumon
- 29
- 5
-1
votes
1 answer
How class observable (obs) using Getx in flutter
This is issue,
final Rx mainModel =Rx

RIYAS PULLUR
- 13
- 1
- 4