flutter-getx Questions
3
Solved
I'm Using GetX Package for State Management in Flutter. I'm trying to show data based on whether condition is true or not. But gets this error which says `type 'bool' is not a subtype of type 'RxBo...
Ibarra asked 2/8, 2021 at 14:7
8
newbie here. How do I re-run onInit() every time I push back to my screen? onInit() runs only once but navigating back to a previous screen does not delete the controller which was initialized (Fet...
Callahan asked 25/4, 2021 at 7:16
5
I'm trying to implement a bottomNavigationBar, but I can't finish it, I'm using Get to handle the routes and the state of the application.
I'm new to flutter, but reading the documentation I still ...
Poach asked 25/2, 2021 at 22:39
4
Solved
I am new to Getx's dependency injection, so can some one explain to me the benefits of Get.put() and Get.lazyPut() and tell me also what difference they have?
Galbreath asked 4/4, 2022 at 9:18
5
Solved
I have two pages: HomePage and DetailsPage and associated GetxControllers.
HomePage:
class HomePage extends GetView<HomeController> {
@override
Widget build(BuildContext context) {
return ...
Cyanate asked 10/2, 2021 at 14:12
1
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 ...
Bandler asked 20/8, 2022 at 17:51
4
Solved
I'm facing the following error in my Flutter project while working with Android Studio:
/C:/src/flutterSDK/flutter/.pub-cache/hosted/pub.dartlang.org/
get-4.6.3/lib/get_navigation/src/snackbar/sna...
Verada asked 14/5, 2022 at 23:23
3
Solved
I am new to the Flutter GetX package and facing problem when using the flutter GetX package. I have several app screens where one screen for listing all the products from the database.
In my produc...
Ceremonial asked 22/6, 2021 at 14:26
5
Solved
I have created a flutter app and used getx package. But then I used it to show the snack bar, the function gets executed but the snack bar is not showing up.
onPressed: () {
print("executed&...
Marksman asked 18/12, 2020 at 12:13
2
Solved
I have this statement in my View layer
TextEditingController controllerDestino = TextEditingController();
And I want to recover this controllerDestino, to use within a method that is in my Control...
Idaline asked 27/1, 2021 at 2:58
1
Solved
I'm using Getx for navigation which internally uses Navigator 2.0. I'm unable to load a specific URL when I Host in Firebase Hosting.
It seems to be working fine locally.
I'm using Url Path Strateg...
Johnston asked 9/3, 2022 at 20:22
3
Solved
I'm in the process of learning GetX state management and stumble upon the DropdownButton widget. How do I update the selected value with the selected value cannot be observed. Here is my DropdownBu...
Barghest asked 10/3, 2021 at 2:25
2
Solved
In summary I want the "context.read().add(EnabledEvent())" to work from the controller itself or some other alternative I can use to trigger an event from the controller and update the st...
Cate asked 27/4, 2022 at 12:51
6
I have a simple Flutter app and I want to remove all previous routes but I want to do with GetX, How to do that?
Now it works with
Navigator.of(context).pushNamedAndRemoveUntil('/home', (Route<d...
Nadeen asked 16/10, 2020 at 20:37
6
Solved
I want to change body of the widget depending on if the pressedBool is false or true.
Here is GetxController I wrote.
import 'package:get/state_manager.dart';
class PressedState extends GetxCon...
Tackling asked 21/9, 2020 at 11:56
1
I am trying to load list of products and I am using CachedNetworkImage (or if I also use Image.network) to display image of that particular product.
I have used Error Builder property so that if im...
Bazemore asked 14/5, 2021 at 10:30
2
I wonder how to use multiple getx controllers in flutter.
Even if the data is updated, it is not reflected in real time.
and Getbuilder can only use one controller.
Can you give me an example of th...
Diffuser asked 9/10, 2021 at 14:16
2
I am able to create popup dialogs using Get.defaultDialog() function. I could not find a method in GetX for creating custom alert dialogs.
I am using the function below to achieve that which uses n...
Ironware asked 2/1, 2021 at 16:30
1
I have following view
import 'dart:async';
import 'package:get/get.dart';
import 'package:flutter/material.dart';
import 'package:google_maps_flutter/google_maps_flutter.dart';
import '../../Contro...
Lancaster asked 27/12, 2021 at 15:9
2
Solved
I have this Getx controller for reading content of a Post from database:
class ReadSinglePostController extends GetxController {
var isLoading = true.obs;
var posts = Post(
postID: 1,
userID: 0...
Stir asked 8/6, 2021 at 9:37
1
I have a basic website using GetX for navigation. I have inkwells with ontap functions which navigate to a new view. Right now, if you right click these buttons there is no "open link in new t...
Uncaredfor asked 27/7, 2021 at 11:17
1
Solved
i have encounterd this problem in this example:
class AuthController extends GetxController {
final storage = const FlutterSecureStorage();
var authData = [].obs;
var isLoading = false.obs;
va...
Sherrell asked 6/10, 2021 at 5:15
3
My code is giving the Null check operator used on a null value error although I can't found any null value in the code.
I don't know which screen is actually causing the error but surely it is out ...
Petrie asked 22/5, 2021 at 13:8
2
Solved
I'm a beginner with tdd so please forgive me if it's a dumb question.
I'm having difficulty unit testing GetxControllers. Does anyone know a simple way of doing this?
Whenever I do I get errors sin...
Rajiv asked 18/3, 2021 at 5:40
1
Solved
Creating one Shopping App using flutter with Getx State Management. I don't know how to create a controller for each element in the list. So that, any changes in the particular element in the list ...
Nocturnal asked 1/8, 2021 at 13:51
© 2022 - 2024 — McMap. All rights reserved.