GetX is a state management, dependency injection, and route management solution for Flutter.
Questions tagged [flutter-getx]
1530 questions
2
votes
2 answers
How to remove item from cart in flutter/ dart
How to remove cart items from a list in flutter when you have a seperate list widget ?
I have three files that contain the following code.
carts.dart => where I display all the list items
cart_list_item => where I have created a…

swapnil mane
- 215
- 5
- 17
2
votes
0 answers
Is there any document or example for using GetX navigation 2.0
I need to update my navigation code to getx Navigation 2.0 which is very easy to use in flutter web

PradeepKumar
- 138
- 8
2
votes
0 answers
How to give transition for the named navigator in getx?
I am using named navigators for navigation. I set the default Transition to Transition.rightToLeft. Now the problem is when I navigate from /tasklist to /taskdetails page, The transition is good. But when I get back from /taskdetails to /tasklist,…

Senthur Kumaran
- 1,135
- 1
- 7
- 18
2
votes
0 answers
Flutter Base Bottom Navigation Bar Page Change
I use the bottom navigation bar in Base View, but the active icon does not change when I change the page.
I am using GetX and need help on how to do the redirects.
I guess when I change the pages, it can't keep the state and rebuild happens.…

Abdullah T
- 127
- 3
- 10
2
votes
2 answers
How to get and display value from a TextEditingController using flutter getx
I'm learning flutter getx -mvc pattern.For a longtime I'm struggling to retrieve a value from text box using Homecontroller and want to display the value when the button is clicked.
Here is the code , I have written.My overall task is to add two…

Kathiravan
- 97
- 1
- 1
- 9
2
votes
2 answers
How to make the list observable in Flutter using the getx package?
I want to make a shopping cart, so for that purpose I want to add products to a an observable list where I can to change the quantity of different product from different pages (I can change the quantity from detail screen or cart screen).
Each…

zahreddine
- 65
- 5
2
votes
1 answer
How to build Animated splash screen with Getx?
I am confused about this. I Don't know how to update the value to animate the image in the splash screen. With the stateful widget class we call setState(() {}); inside the listener to update the value. But, How do I achieve it with the…

Senthur Kumaran
- 1,135
- 1
- 7
- 18
2
votes
1 answer
Flutter - _AssertionError ('package:flutter/src/widgets/framework.dart': Failed assertion: line 4937 pos 12: 'child == _child': is not true.) Error
I am getting an error like this:
════════ Exception caught by widgets library ═══════════════════════════════════
The following assertion was thrown building Builder(dependencies: [MediaQuery]):
'package:flutter/src/widgets/framework.dart': Failed…

Emir Bolat
- 899
- 3
- 14
- 37
2
votes
0 answers
Flutter Error (E/LB: fail to open file: No such file or directory) - Flutter
first of all these errors just appears when i run the app on a real device
the app runs perfectly on android studio emulator
i'm using android studio and Getx package for my flutter project
right after running the app on real device this error…

Mahmoud Al Marashdy
- 41
- 1
2
votes
3 answers
How to call a function when returning to view/controller with `Get.back()`?
I am switching from the home view to another using Get.toNamed(Routes.DETAIL). When I want to return from the details view to the home view, I am calling Get.back() (or the user is using the back button of the devices).
Back on the home view, I…

KarlFri
- 23
- 1
- 5
2
votes
1 answer
How To Dispose PagingController(infinite_scroll_pagination) In GetxController?
I want to release everything when leaving the current screen.
Getx advising me to use onClose method of GetxController for this.
@override
void onClose() {
pagingController.dispose();
super.onClose();
}
He kept his promise, so nice. But it…

blackkara
- 4,900
- 4
- 28
- 58
2
votes
1 answer
Flutter AnimatedSwitcher not animating with with Getx / Obx?
Has anyone had this issue :
I'm trying to animate (fade) the changeover of a background image using a GetX controller and OBX to change the child / rebuild. The change of image works, but the fade animation doesn't. It behaves as if the widgets of…

Mark Bowler
- 51
- 4
2
votes
1 answer
Flutter - Getx update screen only after hot reload
There are 3 buttons and I want to change the color of the clicked button when I click it.
I manage the _currentFilter variable using obx and change the _currentFilter value using the changeFilter() function every time I click the button.
And the UI…

nkhcode
- 87
- 1
- 8
2
votes
1 answer
Flutter web : getx middleware and route arguments (GetX example_nav2)
Getx example_nav2
https://github.com/jonataslaw/getx/tree/master/example_nav2
my app_pages.dart
GetPage(
preventDuplicates: true,
name: _Paths.sRoot,
page: () => const SellerDashBoardRootView(),
…

AkMax
- 293
- 3
- 13
2
votes
1 answer
GetX Throwing TypeError when try to build with Obx
I have controller call MenuController
class MenuController extends GetxController {
var currentCategory = Rx(0);
@override
void onReady() async {
await Future.delayed(const Duration(milliseconds: 2000));
}
void setMenuByIndex(int…

Kamaal ABOOTHALIB
- 3,527
- 1
- 19
- 25