Questions tagged [flutter-futurebuilder]

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.

Reference:

667 questions
1
vote
1 answer

how to use getx obx instead of future builder for a displaying a list of images

I'm trying to display a list of images stored in my firebase cloud storage. I have the image name stored in my firestore. and my getURL() function gets the download url as a future for the respective image. Using future builder I'm successful in…
harish balaji
  • 33
  • 1
  • 6
1
vote
1 answer

SearchDelegate in Flutter: The method 'where' was called on null

I'm trying to do a search in my application and I'm using this SearchDelegate for that. Previously, when I used a provider, everything worked, but I had to make serious changes in the code and now this algorithm below is responsible for finding…
inkwelll075
  • 494
  • 4
  • 19
1
vote
1 answer

SliverGrid not showing inside CustomScrollView in Flutter

I want to get data from REST api, using future SliverGrid should build. But it is not showing, shows just white color and also I didn't know how to specify the total grid items count in SliverGrid. So if it shows it must generate more than the…
Mahi
  • 1,297
  • 1
  • 14
  • 28
1
vote
0 answers

Adding different marker icons to several locations to my google map in flutter does not work

I have added a comment in front of some lines that says 'not needed'. I added this to mark the lines that I think is not related to the question. (The reason I did not remove those lines is, in case that those lines are related to the question,…
1
vote
1 answer

Error: Expected a value of type 'String', but got one of type 'Null' at new note.Note.fromJson

I was follwing a video to implement listview builder but got an error mentioned above, I think its due to null safety but don't know how to solve it.I am working on vscode and Launching lib\main.dart on Chrome in debug mode.Following is my complete…
1
vote
3 answers

FutureBuilder conflict with Notifylistener

I have a method like this in my provider file to update a list of items from server : Future getServerMeals(String userName, String date) async { final QueryBuilder parseQuery = …
Behnam
  • 329
  • 5
  • 15
1
vote
1 answer

Flutter : unclear ValueChanged and FutureBuilder

I'm getting some data from my API. I handle them by converting the returned JSON into some widget CommentaireSingle. But there's something unclear for my, about the I guess the build method. The build is called each time the widget is build,…
morganXap
  • 35
  • 6
1
vote
3 answers

flutter - FutureBuilder auto rebuild each time press a button in the screen

I try to use FutureBuilder in Flutter to wait ulti my initState is finished then buil the UI for the app. But when the app is running, the screen keep rebuilding each time I press another button (the button does totally different thing). Future…
1
vote
0 answers

Flutter : Mysql how to pass row data from ListView to Card

Found solution : For each element of BddAdresseClient elementAt(1) return ListView.builder( itemCount: snapshot .data!.length, // mettre le ! pour tester le null itemBuilder: (context, int currentIndex) { return…
PO JP
  • 31
  • 2
1
vote
1 answer

Compute method not calling in FutureBuilder

I notice my app will get freezed once a large file is selected. So I came out with an idea, which let the bytes generate in isolate thread. Once done generate, let it display in Image widget. First selected file will be added in…
John Joe
  • 12,412
  • 16
  • 70
  • 135
1
vote
3 answers

Flutter FutureBuilder snapshot.data receiving null

I am trying to get data from sqflite using FutureBuilder Here is my Code : Function To get charts from Sqflite getCharts(table, column_name, ids) async { var conn = await database; // var li = []; var data = await conn.query(table, …
1
vote
1 answer

Flutter how do i display snapshot.data of FutureBuilder?

I want to display the summoner data from riot api, but I get this error 'error: The method '[]' can't be unconditionally invoked because the receiver can be 'null'. got red line under "return Text(snapshot.data['id'])". so I tried using '?' to make…
1
vote
1 answer

How to get the 'bool' value from a Future into a field variable, for later use

I am using flutter_blue package for using the Bluetooth service. I want to check whether the device has Bluetooth capabilities. The method isAvailable seems to do it. However, it returns a Future, which I am tryting to get into a variable as…
1
vote
2 answers

The method 'contains' was called on null

Hey guys this is my code: Im trying to display available time slots for my booking app. Expanded( child: FutureBuilder( future: getTimeSlotOfCourt( courtModel, …
1
vote
1 answer

Flutter FutureBuilder Snapshot is null but Future Does return data

While working with Flutter for a new application client for Kanboard, I encountered the following problem. I have a FutureBuilder that should return a select dropdown menu with items but, for some reason, the Snapshot data is null, although the…
Jeoxs
  • 163
  • 1
  • 2
  • 10