Questions tagged [flutter-getx]

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

1530 questions
0
votes
1 answer

cast in model not working wit getX flutter

I have an application with news api from https://newsapi.org/ My model from quicktype: // To parse this JSON data, do // // final news = newsFromJson(jsonString); import 'package:meta/meta.dart'; import 'dart:convert'; List
joisberg
  • 175
  • 2
  • 13
0
votes
3 answers

The getter 'length' isn't defined for the type 'Future>'

I'm writing a kind of todo list in Flutter, with null safety enabled. I'm storing the list of todo on a sqlite db using sqflite. The Item class is the following: class Item { int? _id; String? _name; String? _notes; String? _expiryDate; …
mlazzarotto91
  • 103
  • 3
  • 13
0
votes
2 answers

Ink.image on GridView are not shown on the screen

While working on s Flutter web app, In the following page, the Ink.images on the GridViewBuilder are not shown. I am not getting any error loading the image. The urls are correct, and the internet is available; another Ink.image on a GridViewBuilder…
Kin Pu
  • 400
  • 1
  • 4
  • 13
0
votes
2 answers

Flutter GetX: the value passed in arguments is null on second page

When navigating from one page to another using GetX Flutter, the arguments passed from the first page are not received on the second page. First Controller: class LoginController extends GetxController { var _loading = false.obs; get loading =>…
Kanwarpreet Singh
  • 2,037
  • 1
  • 13
  • 28
0
votes
2 answers

How to execute db query before return the ui on getx

I want to get data from db first and then to show it on the ui, how to let this action execute every time before return the ui? class TestScreen extends StatelessWidget { // execute this method every time before return the ui. data =…
ccd
  • 5,788
  • 10
  • 46
  • 96
0
votes
1 answer

how to make getx flutter to move to the next middleware

Hi I'm using getx flutter middleware . on giving a list of middlewares to a page. How to acknowledge the end of one middleware so getx can move to the next one. for example: homepage has two middlewares 1. first midpage 2. second midpage on calling…
harish balaji
  • 33
  • 1
  • 6
0
votes
2 answers

The argument type 'List' can't be assigned to the parameter type 'Iterable'

This is my controller class as I am using GetX controller with null safety // ignore_for_file: file_names import 'package:get/state_manager.dart'; import 'package:today/models/product.dart'; import…
Ali Punjabi
  • 452
  • 4
  • 19
0
votes
1 answer

Flutter-getx, widget does not re-render when RxMap set to a new value

I'm building a widget that renders based on the contents of an RxMap. I start with the RxMap initialized to empty, and upon clicking a button set the RxMap to contain a new value. After setting the new value for the RxMap, the widget does not…
0
votes
2 answers

How to use controller in flip_card Widget Flutter?

I am using flip_card package for flipping the cards in my quiz application. I have a next button to change the question and answer on both sides of card. But the problem is if the card is on answer side(back side), clicking the next button shows the…
Akhil
  • 165
  • 1
  • 12
0
votes
1 answer

Flutter GetX package Firebase Auth and FireStore "null check operator used on a null value"

First of all, I'm asking a question for the first time, I'm sorry if I'm asking incorrectly and incompletely, I will give you the information you want immediately. Hey, I was following the tutorial in this video but I am getting an error like…
0
votes
1 answer

Flutter GetX Unable to show Snackbar after Navigation

I was trying to show a Snackbar after navigating to a new page with the Get Package. I passed the "snackbar-ingredients" as a parameter to the new widget and wanted to show it then. I got an error that indicates that the built of the widget didn't…
0
votes
2 answers

The class 'List' doesn't have a constructor named 'fromJson'. Try invoking a different constructor, or define a constructor named 'fromJson'

class Product { String status; List note; List table; Product({this.status, this.note, this.table}); Product.fromJson(Map json) { status = json['status']; if (json['note'] != null)…
user16867349
0
votes
1 answer

getx remove value from list

i am using GetX as a state management and i have a list declared inside a controller like this.. List selectedSeats = [].obs; i have two methods inside to add and delete item to/from the list. this i use to add the chair void…
Danny
  • 317
  • 4
  • 17
0
votes
1 answer

Listview.builder with Getx state management

I am reading data from database in word controller class. Then I list the data in the UI with listview.builder. When you add data in the same page, it is not added to the list at the same time. I'm using getx, but I couldn't do this successfully. I…
Salih Balsever
  • 189
  • 1
  • 3
  • 11
0
votes
1 answer

Ternary condition is not rebuilding my widget - Flutter

I need my 'ENCENDER' and 'APAGAR' buttons to change their color after I hit them and send some data through bluetooth, but they change only after I make a hot reload. Don't know if the mistake is on the ternary condition, I have almost the same…