Questions tagged [flutter-getx]

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

1530 questions
-1
votes
1 answer

GetX - Middleware don't watch state changes?

I want to build auth system, protected and unprotected routes. Here is my code: User modal: class User { User({this.username = '', this.isLogged = false, this.loginCookie = ''}); String username; String loginCookie; bool isLogged; } Auth…
Milos N.
  • 4,416
  • 6
  • 18
  • 31
-1
votes
1 answer

Why my ListView.builder doesn't return anything?

I want to create a mobile application with Flutter, which reads news via an api. First time using Getx package to manage state. And I don't know why my news list is not generated Here is my home page with final TopHeadLinesController…
Rassuul
  • 3
  • 3
-1
votes
1 answer

Showing Snackbar using GetX Library

import 'package:flutter/material.dart'; import 'package:get/get.dart'; void main(List args) { runApp(GetMaterialApp( title: 'My App', home: MyApp(), )); } class MyApp extends StatelessWidget { const MyApp({Key? key}) : super(key:…
-1
votes
1 answer

How to make arguments observable in Flutter Getx?

I am trying to build a simple application with Getx. I am actually trying out the package trying to understand more how it works and I am stuck at a place. Please help me. There are two screens. 1st screen has two text fields and using the…
sulli110
  • 145
  • 2
  • 16
-1
votes
1 answer

Flutter How to observ UserModel with GetX after 2.8.1

I am using getX for fetching data from Firebase. I used this one before 2.8 update. It was working. class UserController extends GetxController { final Rx _userModel = UserModel( email: '', name: '', uid: '', …
Tolga Yılmaz
  • 506
  • 1
  • 3
  • 15
-1
votes
1 answer

Flutter with Sqflite + Getx data update issues

I am currently using GetX and Sqflite within Flutter and encountering the issue of data update after insert. Firstly, there is a LoadingScreen which checks if there are any entries in the User Database. If none, then it opens up the SignUp Page to…
gputhige
  • 109
  • 2
  • 11
-1
votes
2 answers

how can i render a widget according to condition getx?

I can not rendering a widget according to a condition using GetX? the error i get is : [Get] the improper use of a GetX has been detected. You should only use GetX or Obx for the specific widget that will be updated. If you are seeing this error,…
user16906111
-1
votes
2 answers

Toggle Switch not changing position after app language is changed using GETX package Flutter

I have a toggle switch in my app, where the user clicks to change language. I am using the toggle_switch package in my view. My view looks like this : class Welcome extends GetView { final WelcomeController _controller =…
Md. Kamrul Amin
  • 1,870
  • 1
  • 11
  • 33
-1
votes
1 answer

Please, How to use getxController with multi-step registration form while working with an external api in flutter

Please, How to use getxController with multi-step registration form in flutter
-1
votes
1 answer

What is the difference between the following var initialization positions in a StatefulWidget?

I was wondering about where to declare and initialize variables in the case of a StatefulWidget. There seem to be a couple of ways to do it, but are there differences, any guidelines, or best practice approaches for it? I created the below sample,…
Mena
  • 3,019
  • 1
  • 25
  • 54
-1
votes
1 answer

custom AppBar The element type 'List' can't be assigned to the list type

class BottomOfAppBar extends StatelessWidget implements PreferredSizeWidget { BottomOfAppBar({Key? key, required this.tabs}) : super(key: key); List tabs; @override Widget build(BuildContext context) { return Obx(() => Container( …
-1
votes
1 answer

The argument type 'Obx' can't be assigned to the parameter type 'PreferredSizeWidget?

return DefaultTabController( length: filteredList.length, child: Scaffold( appBar: AppBar( backgroundColor: (Colors.white), iconTheme: const IconThemeData(color: Colors.black), …
-1
votes
2 answers

Flutter - getx how to get sub class data from firebase

i am only able to access data from "restaurants" by using getx but after "restaurants" i am unable to access data from "swad"/"menu"/"apple"/data i want access all data .Not only "apple" but all like "among us","plant",else all. i previously use…
Chinmaya Garnaik
  • 83
  • 1
  • 2
  • 7
-1
votes
1 answer

What's The Proper Usage Of Obx For ListView.builder?

Below usage is got stucked in an improper use of GetX error. My first impression was to move the body of itemBuilder into ListView.builder and use as anonymously, but the result was same. class MySuperPerfectReactiveMagnificentList extends…
blackkara
  • 4,900
  • 4
  • 28
  • 58
-1
votes
1 answer

The member 'value' can only be used within instance members of subclasses with flutter GetX

i have encounterd this problem in this example: class AuthController extends GetxController { final storage = const FlutterSecureStorage(); var authData = [].obs; var isLoading = false.obs; var authLoading = false.obs; @override …
Osama Mohammed
  • 2,433
  • 13
  • 29
  • 61
1 2 3
99
100