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
2 answers
Flutter + SharedPreferences: a build function returned null
I'm trying to get access to the SharedPreferences and create a permanent file named "first_run".
At the first start of the application it should return "true" and then change it to false.
I declared a future function that return true or false based…

Lura
- 99
- 2
- 7
0
votes
1 answer
Future Builder not building
I'm trying to include FutureBuilder but it goes into the CircularProgressIndicator() and doesn't load the actual screen code after the value of 'time' is populated by calling from SharedPreferences and the ConnectionState is done. It just gets…

int_string
- 19
- 3
0
votes
2 answers
Redrawing widgets in flutter after coming back from another
I have a one MainExerseClass dart class. In which I have ImageSequenceAnimator and LinearPercentIndicator which should be restarted when control comes to the MainExerseClass dart by poping another class. The count1 is getting updated but…

Poornima Vm
- 1
- 1
0
votes
2 answers
Flutter: Mapping JSON into List of Objects returns null
I have a json of structure
{
"message": "",
"status" : "complete",
"results": [
{
"id": 66,
"user": {
"id": 80,
"email": "+fsefs@gmail.com"
},
"order": {
"id": 1,
…

williamjnrkdd
- 39
- 6
0
votes
1 answer
Using SliverList with FutureBuilder item adding not updating list pagination, Flutter
I am getting not error but the problem is when i fetch next 10 record then record came and print in logcat but in SliverList record not adding in list, I don't know what is exactly problem is, data came and update list and suddenly its back to his…

Qutbuddin Bohra
- 1,165
- 1
- 11
- 29
0
votes
1 answer
In Flutter, how to store value returned by FutureBuilder, Future async function in a String type variable?
I am using one String type variable e.g. String API_URL= "http://www.example.com"; Now I want set API_URL value to set by returned from internet. So I am trying Future getURL() async{...} function but I am not sure how to store return value in…
0
votes
1 answer
My futurebuilder gives error for few seconds on the screen and then show's the result here is the error logs
Here is the Error log that I am having on IDE.
Restarted application in 1,172ms.
I/flutter (24036): ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
I/flutter (24036): The following…

Internet
- 23
- 3
0
votes
0 answers
FutureBuilder contains previous search result element
For some weird reason, after searching for the second time, given I already have a list with the first search results, when I click on an element it displays information from the first search result.
I don't understand why.
return Expanded(
…

w1nt_r
- 1
0
votes
1 answer
Flutter: How to display a floatingActionButton only after the FutureBuilder ends
I would like to display a floatingActionButton only after my future loads the data (ConnectionState.done).
It is simply displayed during the waiting and is not cool. I would like it to be displayed after future processing…

Adalberto Júnior
- 1
- 2
-1
votes
1 answer
FutureBuilder flutter
I am creating an app like snapchat where the app start with camera page and before this it ask user for camera and microphone permission if the user grant both permission then the camera widget will be displayed other wise instead of camera widget…

RIZWAN ALI
- 120
- 1
- 1
- 11
-1
votes
2 answers
Receiving these errors in Future builder and Future List
I am facing this error, even though I have written the 'if statement'.
I also tried adding an 'else statement' like else{return Text(" "); } but then it completely ignores the 'if statement' and shows only the else statement in the Output, which is…

Shahzain Ahmed
- 65
- 12
-1
votes
1 answer
how to use two future builder in one page in flutter
In my Flutter app, I need to display two lists that are coming from the database, but I am having trouble getting both lists to display on the same screen. I am using two FutureBuilder widgets, but the first list is displaying correctly while the…

waqas023
- 5
- 4
-1
votes
1 answer
Database getting locked while showing data in listview
Warning database has been locked for 0:00:10.000000. Make sure you always use the transaction object for database operations during a transaction.
I received this error while showing data in screen. And it takes too long so I have to reduce…
-1
votes
2 answers
how I avoid FutureBuilder runs multiple times and duplicate the output List
I have a Future function that returns a List and I had the problem that kept duplicating... I solved it by setting an initState() as described here: Flutter FutureBuilder gets constantly called flutter-futurebuilder-gets-constantly-called
Now I…

CastoldiG
- 178
- 3
- 17
-1
votes
1 answer
Null check operator used on a null value || Flutter
The null check operator used on a null value error comes up sometimes on the UI otherwise a circular progress indicator shows up.
the error shows up in the 266 line.
class Orders extends StatefulWidget {
@override
_OrdersState createState() =>…

ᴅ ᴇ ʙ ᴊ ᴇᴇ ᴛ
- 464
- 4
- 18