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
4 answers
Error Using FutureBuilder With Local JSON as Future
I am trying to load some json data and have used a futurebuilder to wait for the data to be available first then display it. When I try to load the data in DetailsView, I get two log messages Saying there's no data and null, the screen errors out…

Nzadibe
- 598
- 2
- 11
- 28
0
votes
2 answers
FutureBuilder is able to get data but data is taken multiple times with Flutter
I am using a simple Json like this :
[
{
"question" : "Sky",
"answer" : "Blue",
},
{
"question" : "Sun",
"answer" : "Yellow",
},
]
and am able to get the data inside text widgets as…

YasartheWise
- 1
- 2
0
votes
1 answer
How can I show SQLite mapped data to new flutter screen. I can print it to the console but not in flutter screen
FlatButton(onPressed: () async {
List

cyborg2006
- 1
- 3
0
votes
2 answers
Show list items based on date - Flutter
I want to have a list when the date of each list item is equal to todays date.
I, personally, wrote this code in listview.builder in future builder:
itemBuilder: (context, index) {
var now = DateTime.now();
var…

Mahdi Aghajani
- 127
- 1
- 1
- 8
0
votes
0 answers
Listing data in Sqflite with FutureBuilder
I have questions table on my Sqflite database but ı can't show them on my Screen.
this all questions in my DatabaseHelper class
Future
- >> allQuestions() async {
var db = await _getDataBase();
var sonuc = await…

Yalçın Yıldırım
- 19
- 5
0
votes
1 answer
Flutter, how to get data array of object and show to ListView.builder?
im new in flutter and i want to get my data from localhost phpmydmin.
here is my json:
{
"status": true,
"message": "Data ditemukan",
"data": [
{
"id": "1",
"username": "admin",
"password":…

sans
- 3
- 1
- 2
0
votes
1 answer
Flutter : List View builder don't view result of search
I have an app with Flutter ,try to create search for product engine ,the backend is work fine as I tested it on postman ,but I have problem with Future Builder in Flutter.
first I have provider to get data from server as a result of search :
import…

Sermed mayi
- 697
- 7
- 26
0
votes
0 answers
Flutter: Is nesting FutureBuilder results unusual behaviour?
While I was doing my project I encounter unforeseen condition where if I open a page where I have nested FutureBuilder widget then going back to another page and focusing on text field to type something resulted navigation to the same page where i…

Amrit Sharma
- 5
- 3
0
votes
0 answers
How do I intergrate an image the image picker and photofilters plugins?
I am new to Flutter programming and have developed a widget for picking images from the gallery but I could not successfully integrate it with the photo filters plugin and create a method to post it into my app. Please help. The code is a bit…

Vick
- 1
0
votes
2 answers
How to check whether there is a user logged in the app or not
In 2019, I managed to check whether a user is logged in to the app or not. Unfortunately, a lot has changed since then. I've tried searching for tutorials and guides on FlutterFire. But, I couldn't find any. I'm so confused about stream, future, and…

a..
- 109
- 13
0
votes
4 answers
Flutter: How to pass parameter to FutureBuilder future instance?
For prevent rebuild, I use a future instance _futureInstance in FutureBuilder:
var _futureInstance;
Future _loadData() async {
// ...
}
@override
void initState() {
super.initState();
_futureInstance = _loadData();
}
@override
Widget…

Mingfei
- 1,459
- 1
- 10
- 12
0
votes
1 answer
Dart, Flutter, Future Builder, ListViewBuilder
I have a response from api, it have 83 objects, but my app dont render more than 39 items with error RangeError (index): Invalid value: Valid value range is empty: 0, if i replace itemCount to 39 works fine, where i have mistake? Maybe its because…

Galym Sarsebek
- 1
- 2
0
votes
1 answer
Not sure to which statement the await keyword needs to be applied in Flutter or Dart
I'm getting green swirly lines underneath the await keyword.
When I hover the mouse over the green swirly lines, it says 'await' applied to 'Query', which is not a 'Future'.
I'm not sure to which statement the await keyword needs to be…

xpetta
- 607
- 12
- 28
0
votes
1 answer
Flutter, using FutureBuilder within SliverFillRemaining
I am building a FutureBuilder with a Listview within a SliverFillRemaining. And I think since Sliver is already within a CustomScrollView the scroll function doesn't work properly. Once it scrolls down it doesn't scroll back up.
Below is the…

James Min
- 11
- 1
- 3
0
votes
1 answer
Flutter/Dart When I try to import data from internet, it doesn't load it
I am new with Flutter/ Dart...
I am trying to import data from a http using json.decode, but it is always as null, showing 'loading...'. I am using FutureBuilder! I already searched for the solution, but I didn't find it. I am using…

cabral279
- 97
- 10