Questions tagged [flutter-getx]

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

1530 questions
3
votes
0 answers

in Flutter "Receive share intent" in IOS not receiving any value

here Im using Receive_share_intent package to receive data from other apps it works perfetctly on android but in IOS when i share in IOS it Opens the app but no data has been passed it doesn't triggered the StreamSubcriber too Package:…
3
votes
3 answers

You need to call "Get.put(dynamic())" or "Get.lazyPut(()=>dynamic())"

i get the error Unhandled Exception: "dynamic" not found. You need to call "Get.put(dynamic())" or "Get.lazyPut(()=>dynamic())" when i call the authController, below is my code. if (Get.find().isLoggedIn()) { //statements } my…
chubi
  • 135
  • 9
3
votes
2 answers

Flutter GetX - How to manage controller deletion?

I have a Flutter app with GetX Controllers. The app has 6 screens and every screen has its GetxController. Screens 1 and 2 are for the login system, while screens 3 to 6 are for the app content. After logging in the user can go forward and back…
Ale TheFe
  • 1,540
  • 15
  • 43
3
votes
2 answers

Flutter GetX navigate to same page but with different data

I am using GetX with my flutter project. In home page when user taps a product, it is navigated to ProductDetails like this Get.to(() => const PropductDetails(), arguments: [ {"Details": item} ]); And in ProductDetails page there is list of…
WatsMyName
  • 4,240
  • 5
  • 42
  • 73
3
votes
0 answers

Trying to use contextless navigation without a GetMaterialApp or Get.key

I try to push a new route when user opens a notification but I get the following error: FlutterFire Messaging: An error occurred in your background messaging handler: You are trying to use contextless navigation without a GetMaterialApp or…
t3nsa
  • 680
  • 6
  • 21
3
votes
1 answer

In Flutter Getx, what is the difference between `Get.parameters` and `Get.arguments`?

In Getx when navigating to a new page, you can pass data to the second page as 'arguments': Get.toNamed('/second', arguments: {}); or as parameters Get.toNamed('/second', parameters: {}); and in both cases, you can access this data using…
MOHAMMAD RASIM
  • 335
  • 1
  • 6
  • 14
3
votes
2 answers

What is the difference between setState and GetX in flutter?

I am just looking forward to understanding the difference between using a normal setState(() {}) and the update() method of the Getx package. As much as I can see from the practical point of view when setState(() {]) is used the whole page is…
3
votes
3 answers

How to pass argument using getx?

Get.rootDelegate.toNamed('/note', arguments: 'test_data'); Get.arguments <= It makes null. How can I solve this problem?
K.k
  • 367
  • 1
  • 8
  • 17
3
votes
1 answer

Flutter How to apply Getx & Obx to ToggleButtons Widget

I need to use ToggleButtons widget with getx. but I couldn't find any reference about ToggleButtons & getx. I tried my best, but I got only Error message below described. my quenstion is How can I use ToggleButtons widget with Getx? my code works…
Hajime
  • 212
  • 3
  • 13
3
votes
0 answers

GETX _CastError was thrown building Obx(has builder, dirty, state: _ObxState#7e686): Null check operator used on a null value

i'm getting this error while using list view. so i have getx controller like this class RequestMitraController extends GetxController { final selectedMitra = [].obs; } and i'm using this for selected item int view like this whit obx to observe…
3
votes
1 answer

Flutter web directionality unexpected null value

I am using flutter web. I am using GetX package to manage my states & navigation. When the app starts everything is working fine and I am able to navigate to other pages without any problems. The problem is when I press reload on my chrome browser…
user1942045
  • 67
  • 2
  • 6
3
votes
1 answer

Flutter Getx isn't updating initialValue of TextFormField

If i use the same variable in a Text Widget it works but not on TextFormField.
3
votes
5 answers

Duplicate GlobalKey detected in widget tree - GetX Navigation

I am using GetX plugin to navigate between the pages. And when I navigate back to the page which has Text input field I get 'Duplicate GlobalKey detected in widget tree' Main Page import 'package:flutter/material.dart'; import…
Saad Bashir
  • 4,341
  • 8
  • 30
  • 60
3
votes
1 answer

reassemble equivalent in Getx

what is the reassemble(https://api.flutter.dev/flutter/widgets/State/reassemble.html) equivalent in Getx? How can I track hot reload? thanks:) this is the part of code what i would like to done with Get: @override void reassemble() { …
3
votes
1 answer

Navigating back to home screen from other screen which is opened from push notification

I have multiple screens and I'm using named routes in flutter using getx package. The problem I'm facing is I'm able to navigate to any other screen when tapped on push notification, but when I go back from that screen my app closes. But expected…
Mickey
  • 31
  • 2