Category "future"

Flutter: convert future to stream

I am getting data as Future from my json API. And use my Flutter Mobile app. Here is my code for getting data from API- import 'dart:async'; import 'dart:conver

Flutter - FutureBuilder fires twice on hot reload

In my flutter project when I start the project in the simulator everything works fine and the future builder only fires once, but when I do hot reload the Futur

Flutter future builder to list

I have some troubles in understanding how future builder works in flutter. I want to pass a list of String from my future call and I want to display them in a S

When should I use a FutureBuilder?

I was wondering when I should use the future builder. For example, if I want to make an http request and show the results in a list view, as soon as you open th

Fetch data from firestore inside a stream map

Is it possible to let a stream await during a fetch from firestore? I want to achieve that a user also fetches his own roles from the firestore database. Of cou

Flutter Location packages does not return current location on iOS

I'm stuck with this problem, If I try to call: Location location = Location(); LocationData data = await location.getLocation(); The future does never return a

Dart: How to return Future<void>

How can I return Future<void> ? Future<void> deleteAll(List stuff){ stuff.forEach( s => delete(s)); //How do I return Future<void