For questions relating to Flutter's FutureBuilder class. Use this tag in combination with the general [flutter] tag. If your question applies to Flutter more generally, use the [flutter] tag only.
Questions tagged [flutter-futurebuilder]
667 questions
0
votes
1 answer
AsyncLoader in Flutter fetches data twice
I'm trying to fetch data from an API to display it in a gridview but asyncloader is fetching and displaying extra fields when they don't exist. Why is this happening? The issue is only when I log out from the app and login again. If I don't log out…

CodeSadhu
- 376
- 2
- 4
- 15
0
votes
2 answers
scrollcontroller doesn't work with futurebuilder
i have an api call that upload data by offset, my goal is to load 10 by 10 on user scroll down, the problem is that i can't scroll down and show more data: here is my snippets:
class Body extends StatefulWidget {
@override
_BodyState…

ELHIT Fatima
- 23
- 1
- 8
0
votes
3 answers
Refresh Indicator does not update a list after deleting data
I have a FutureBuilder getting specific items from Firestore and returning them in a list. To update this list I added RefreshIndicator. When something is added to the list and I refresh it, it works normally and the item appears. The problem occurs…

Vitor Freitas
- 103
- 1
- 11
0
votes
0 answers
Flutter App gets Stuck when Future Builder is in ConnectionState.waiting
I am using Flutter Future Builder with ListView which display data loaded from an API.
When the Future Builder is in ConnectionState.waiting the app gets Stuck.
FutureBuilder
- >(
future: totals,
builder: (BuildContext…

Rino Vetha Moses J
- 31
- 3
0
votes
1 answer
How do I resolve a JSON object received from localhost in FutureBuilder
I have the following JSON hosted on localhost and am trying to resolve it in a FutureBuilder widget. I cannot resolve the data from the Json to display using the FutureBuilder widget. All I get is "Instance of LiteratureDataModel". Moreover, I…

flutternoob
- 296
- 5
- 8
0
votes
3 answers
Type 'List' is not a subtype of type 'FutureOr>', Flutter
- >', Flutter
I'm calling an API but I've been trying to parse this JSON response correctly but I haven't been able to resolve this issue. I call the API, and want to display the data with a FutureBuilder and Provider, but I get that error Type 'List' is…

GrandMagus
- 600
- 3
- 12
- 37
0
votes
1 answer
FutureBuilder keeps Firing the Future method
I get the data from http request, then i load it using futureBuilder, the problem is that it keeps calling the future method even if i set a variable with the future method in 'initState ()', but it still keeps calling it multiple times, i also…

Kane David
- 9
- 6
0
votes
0 answers
How can i used the multi future in FutureBuilder?
Begins an asynchronous calls the function and multiple.
However, the response to the second call is always null.
I want to update it to the screen when I get all the results.
sometimes invoked Error msg like this :
type 'List' is not a subtype of…

hello_ey
- 11
- 1
0
votes
1 answer
FLutter : cant complete retrieving data from firestore
i try to passing query from first page to second page within constructor
Navigator.push(context, MaterialPageRoute(builder: (context) => ListWisataScreen(querySnapshot: dataService.getAllWisata(),)))
the query passed successfully and the data is…
user15103024
0
votes
1 answer
Flutter: Using FutureBuilder with StreamBuilder
I have a screen where I need to get a JSON file name from Firestore first and then load the asset JSON file. I usually use StreamBuilder for Firestore document snapshots and I can load JSON with a FutureBuilder. My question is how can I combine…

nondefinite
- 41
- 8
0
votes
1 answer
Is that Future<>s pattern possible to do in dart(Flutter) as it is in JS?
I need to do something like this using dart's Futures(or else):
function Obj(){
let resolver;
this.promise = new Promise((resolve, reject) => {
resolver = resolve;
});
//await firebase initialization or something
setTimeout(() =>…

Nick
- 455
- 9
- 28
0
votes
1 answer
How can I change a Futurebuilder into an Streambuilder?
I'm using a future builder in a method and trying to switch to a Streambuilder but struggling a it with that heres my code may be anyone can help
class _MeineFreundeState extends State {
Icon custIcon = Icon(Icons.search);
Widget…
user15585062
0
votes
4 answers
Flutter: FutureBuilder NoSuchMethodError isNotEmpty
I've created a flutter project with FlutterBuilder with ListView.builder which get the data from JSON file (local). I successfully build the app, but just for a second the screen shown like this :
after that, my app work smoothly.
Here is my code…

Bill Rei
- 333
- 3
- 14
0
votes
2 answers
How to use InitState when using Future Function and Future builder in flutter
I am facing a problem in Flutter. I am not use to using Future Functions that efficiently.
I am trying to get a value from Future function in InitSate of stateful class and later using the return value in Future Builder.
However, at the moment when…

Mandeep
- 335
- 3
- 13
0
votes
1 answer
snapshot.hasData is true but the snapshot.data.length is null, Flutter
I'm calling an API from a component that returns some data, but the problem is snapshot.hasData is true but the snapshot.data.length is 0. Am I parsing the data wrong(again)? The code:
API call service component:
Future
- > getUsers() async…

GrandMagus
- 600
- 3
- 12
- 37