GetX is a state management, dependency injection, and route management solution for Flutter.
Questions tagged [flutter-getx]
1530 questions
3
votes
1 answer
how to use inner navigation if we using bottomNavigationBar on GetX
I'm trying to make navigation inside the body of the widget where the bottomNavigationBar remains outside, here is my code:
class WrapperController extends GetxController {
int currentIndex = 0;
List items = [];
…

Kizat Suleimenov
- 177
- 1
- 7
3
votes
1 answer
How to set enum variable observable?
Please help.I use flutter and GetX.
How to set enum variable observaible? enum MyEnumType {open,close}; var _myEnumTypeVar = MyEnumType.open.obs;

user1942979
- 119
- 1
- 2
- 6
3
votes
6 answers
How do I reset my controller when I come back or finish?
I have a QuestionController class extends GetxController
When I exit the Page using the controls, I want it to stop working (because it is still running in the background) and to start again if I come back to that page.
I've tried: I added these…

zeed
- 285
- 1
- 5
- 18
3
votes
0 answers
Calling a function on GetX update in Flutter
I have a flutter map screen with dynamic polylines that are set using the GetBuilder. They are rendering but I want to fit them to the screen using cameraTargetBounds but this doesn't work.
See my code below:
GetBuilder(
…

Tim Kariuki
- 633
- 8
- 17
3
votes
2 answers
Observe List with GetX outside of widget
I have isolate that makes some heavy calculations then on receive the list with the result run a for loop to add them to observable list with items var items = [].obs;
The thing is I'm trying to observe the items list from a splash controller and…

i6x86
- 1,557
- 6
- 23
- 42
3
votes
1 answer
flutter model with both .obs and hive fields
I'm kinda new to flutter.
I am writing an application with Getx and Hive packages.
I would like to make my model observable by making each field reactive. I prefer this approach rather than making the entire class observable in the controller; by…

user3360086
- 71
- 2
- 7
3
votes
1 answer
Flutter : How can I change variable with Getx?
I want to change the value of the counter to 0.
But every time I try, it's not working and I can't use increment() anymore.
I believe that solution would be simple but I can't figure that out.
class Home extends StatelessWidget {
final controller…

batu
- 33
- 3
3
votes
5 answers
Flutter and GetxController - How to manage state unreliability?
I currently have many problems in my app with the get package for Flutter (https://pub.dev/packages/get) and the following state scenario:
For example I have a GetxController UserController. I need this controller in different Widgets, so I…

Vueer
- 1,432
- 3
- 21
- 57
2
votes
2 answers
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 back and loading bar get closed. I want it to…

Aman Programmer
- 60
- 4
2
votes
1 answer
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 the controller again so that it takes a new…

Mohammed
- 125
- 6
2
votes
0 answers
How to make multiple checkbox selection with Getx
All checkboxes were selected when I select only one checkbox. I tried most of solves in stackoverflow's post but those solves did not work for my code. Checkbox never be selected when I click one box Because value of isSelected inside Controller…

Ozan
- 53
- 6
2
votes
2 answers
how to know the TTS status in flutter
I'm making an flutter app with the flutter_tts package , and i want to change the UI according to the status of the tts, like if it finished reading then the UI will change.
so how to know the status of the tts?

user21187281
- 21
- 3
2
votes
2 answers
Getx flutter change theme when i change theme dark and then return light mode its not loading my custom theme
Getx flutter when i change theme from light to dark mode and then return to light mode its not returning my custom theme its load old app bar background even theme changes
ThemeData lightTheme = ThemeData(
useMaterial3: true,
backgroundColor:…

Tanveer Ahmad
- 51
- 7
2
votes
1 answer
flutter - Unable to parse JSON message: The document is empty
I am working on a cart system. I am trying to sum of the product price added into the list. When I update the product quantity it gives me following error.
I am using getx for this. But I don't think it is a getx error.
Unable to parse JSON message:…

Swapnil Mane
- 95
- 9
2
votes
0 answers
my channel dose not find in awesome_notifications flutter
Hi I want create app with GetX and awesome_notifications, But after i click on button this error is show:
how can fix this? please help.
W/Android: Awesome Notifications: Channel model
'basic_channel' was not found (ChannelManager:88) E/Android:…

sadegh
- 103
- 5