Questions tagged [flutter-get]

24 questions
21
votes
6 answers

Flutter Getx - "Xxx" not found. You need to call "Get.put(Xxx())" - But i have called Get.put(Xxx())

I have this global bindings class to initialise some services and I need it to be initialised straight away: import 'package:get/get.dart'; import 'package:vepo/data/data_provider/local_data_provider.dart'; import…
BeniaminoBaggins
  • 11,202
  • 41
  • 152
  • 287
18
votes
3 answers

How to build a TabView using Flutter GetX

I'm trying to build a app using Flutter with GetX for State Management, and in one of my pages i need to build a TabView widget in the middle of the page, i already found a lot of stuff explaining how to build a TabView as widget, as this post and…
Patrick Freitas
  • 681
  • 1
  • 5
  • 18
13
votes
1 answer

flutter get when to use GetX, GetBuilder or Obx()

As the title reads, there are a couple of ways to update state. When should I choose one over another?
Nero
  • 1,555
  • 1
  • 13
  • 28
5
votes
3 answers

Are obs stream being closed automatically by GetxControllers?

I am using the following package https://pub.dev/packages/get. Do I need to close my .obs in the onClose of a GetxController? I can't find anything about this in the docs. And looking at my memory it appears that the are being destroyed…
anonymous-dev
  • 2,897
  • 9
  • 48
  • 112
4
votes
1 answer

Is there any way to iterate over future in flutter

I would like to iterate over the the Future but get errors if I try using for loops or if I try setting it as List. Is there any other way of looping over each element in the list: Future getDailyTask(DateTime date) async { var params…
3
votes
3 answers

How can I use condition and go to different page on flutter using Getx without click

I am trying to use firebase data to route different pages using Getx. First I have a splash screen and want to automatically go to different pages according to conditions. If the user has already login, it will redirect the Home page, if not the…
Palash Dey
  • 69
  • 1
  • 7
3
votes
7 answers

Flutter GetX routing history

I it possible to see the navigator stack with GetX? I looked in the documentation but I could not find anything on this subject. I usually close for example dialogs like this Get.until((route) => !Get.isDialogOpen); But I was wondering if I could…
anonymous-dev
  • 2,897
  • 9
  • 48
  • 112
2
votes
2 answers

Changing property of children don't trigger UI change on Flutter Getx

I'm trying to render a reactive widget, based on a object list. I needed that when the children of this object, has his boolean property changes, the UI should be updated. In this scenario, my controller has a list os Sections and each section has a…
Patrick Freitas
  • 681
  • 1
  • 5
  • 18
2
votes
3 answers

reset all value of controller in flutter with getx packages?

hi i want to know how te reset all value of controller in getx packages ? I already tried Get.reset(); but that's not working
B.Ghost
  • 200
  • 4
  • 15
1
vote
1 answer

A value of type 'bool?' can't be assigned to a variable of type 'bool' because 'bool?' is nullable and 'bool' isn't

this is my complete code... import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:get/get.dart'; class DialogHelper{ //show error dialog static void showErrorDialog({String title='error',String…
1
vote
1 answer

how to display a websocket data in flutter with getx

I want to display data realtime on ListDemo widget with the socket value using getx, but I having trouble to implement // socket.dart class WebSocket { final hubConnection = HubConnectionBuilder().withUrl(EnvironmentHml.socketUrlFake).build(); …
Igor
  • 399
  • 4
  • 18
0
votes
1 answer

Getx controller cant dispose

i create a function to cek user, from API to check user login or not. i use this because my API is not realtime. this my code for funcheckuser void funfetchUser() async { print('get user'); SharedPreferences prefs = await…
StarsHat
  • 1
  • 3
0
votes
1 answer

Flutter - GetIt error, Even when it's already Registered

I am writing an app using clean architecture and using GetIt to handle the dependency Injection, now every time i try to start the app it gives this error , telling me that i didn't register 'UserRemoteDataSourceImpl ' when i already did , you can…
0
votes
1 answer

How can i pass value back using Get.back() from page2 to page1

Here are what i am trying Page 1 - Ask to select a value. Page 2 select the value from the list. Once value is selected, navigate back to Page 1 the selected values should show in the page1. a code snippet will help.
0
votes
1 answer

Flutter&GetX: The first dialog not working after open the second dialog in the new page when using the Get.toNamed()

This issue is related with github #2502. I am using GetMaterialApp from this package. I'm not sure if this is a bug or not. How to make the function in the first dialog useable by using Get.toNamed()? It happened when using the Get.toNamed(). It…
1
2