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
how to display properly single value from a StreamBuilder 'Cloud Firestore'
i have data stored in filds like so => image
i have followed the documentation, the data just refuses to show for some reason.
it looks somthing like this
StreamBuilder(
stream:
…

PHP Pharaoh
- 39
- 1
- 6
0
votes
1 answer
Trying to create a method to store Strings in a list
i have a list of volumes that looks like this
['9v9JXgmM3F0C','RoAwAAAAYAAJ','RYAwAAAAYAAJ']
i have a ready funtion that sends Individual volumes and retruns a Map.
Future getBooksByVolume(volume) async {
var searchUrl =…

PHP Pharaoh
- 39
- 1
- 6
0
votes
2 answers
How to use setState in FutureBuilder properly?
I'm making a page which contains some dropboxes which interact each other and a Futurebuilder wrapped ListView.
I'm calling 'setState' when Dropbox changes and checkbox is clicked.
However, because of the setState in checkbox's onChanged, the…

chan hong Park
- 45
- 2
- 10
0
votes
1 answer
Flutter: How to fix error caused by setState in FutureBuilder
My goal is to load a Future once when an ExpansionTile is clicked and store the values, so that the Future isn't loaded again when the Tile gets closed and then reopened.
The problem with my current code is this error:
I/flutter (30528): The…

PlutoHDDev
- 540
- 7
- 25
0
votes
3 answers
Future can't be assigned to the list type 'widget'
I'm making a dialog screen which contains a dropbox and list view like below.
showDialog(
context: context,
builder: (BuildContext context) {
return AlertDialog(
content: StatefulBuilder(
builder:…

chan hong Park
- 45
- 2
- 10
0
votes
1 answer
The argument type 'User' can't be assigned to the parameter type 'Future'
I am trying to build an app that contains chat, but the error message appears because this line:
return FutureBuilder(
future: FirebaseAuth.instance.currentUser,
The argument type 'User' can't be assigned to the parameter type…

Manal
- 169
- 1
- 3
- 15
0
votes
1 answer
pull to refresh in case 'No data' widget
I need help in this please i have a RefreshIndicator that loads a ListView when there is data in the database however I want to make the widget return Text widget 'no data' if the table empty instead of the ListView.
but the when the table is empty…

hadeel elmutasim
- 1
- 1
0
votes
3 answers
(Flutter Futurebuilder) the appbar title won't load as soon as the page changes
import 'dart:convert';
import 'package:flutter/widgets.dart';
import 'package:flutter_app/home_page.dart';
import 'package:flutter_app/login_page.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import…

user14733716
- 31
- 6
0
votes
0 answers
Can't able access the api data due to notice error
Sorry can't able to show exact json file contents and API URL links
this is my json file contents
Notice: Undefined index: api_token in /home/websitename/public_html/catalog/controller/startup/session.php on line 8{
…

Ketan aggarwal
- 1
- 2
0
votes
2 answers
how to create a method that will call URL's From a list with flutter
I am working with google books in my flutter project.
im trying to create a method that that will call the diffrent books URL's that i have stored in a List and call the list back using a future builder.
The list look somthing like…

PHP Pharaoh
- 39
- 1
- 6
0
votes
1 answer
Flutter : show specified row from nested JSON data
I have future builder with future list like this ,I want to view data with empty predect object:
[
{
"id": 1,
"home": "Turkey",
"away": "Italy",
"h_goals": 0,
"a_goals": 0,
"date": "2021-02-06",
"time": "22:00",
…

Sermed mayi
- 697
- 7
- 26
0
votes
2 answers
Flutter get future list data into normal list
I am trying to show a list of items in a DropdownField, which requires a non-future list.
So I am trying to turn my future list (which I get from a database call) into a normal list by iterating over it and adding it to a new, normal, list, like…

lvb
- 41
- 3
0
votes
0 answers
Flutter - using ListView.builder inside FutureBuilder and SliverList - scroll behaviour
I'm trying to improve my app and want to wrap an existing FutureBuilder with a SliverList. Unfortunately I'm having a strange and incomprehensible scrolling behaviour.
Here's my code so far:
@override
Widget build(BuildContext context) {
…

lechnerio
- 884
- 1
- 16
- 44
0
votes
2 answers
'Bad state: No element' Error - Flutter Future Builder
I am receiving an error that says:
Bad state: No element
The relevant error-causing widget was:
Expanded file:///C:/Users/***/AndroidStudioProjects/***/lib/ui/screens/price-screen.dart:142:23
The error is referring to this part of my…

CuriousCoder
- 262
- 4
- 14
0
votes
2 answers
Stop Listview.builder in Flutter
I'm loading articles from a WordPress instance that I want to display in a ListView, however I don't want to just load a list of all articles at the beginning as that could eventually be a lot. So I thought I could just make a Listview.builder with…

isi_ko
- 417
- 1
- 5
- 14