696 questions
1 vote
1 answer
54 views
The Flutter app restarts when switching theme mode
i am facing an issue in my flutter app that when i am trying to change the theme mode of the app then it automatically restarts the whole app, To be clear enough i am using Future builder in the ...
0 votes
0 answers
47 views
What is the difference between Future and Stream in Flutter, and when should I use each? [duplicate]
I'm new to Flutter and I'm a bit confused about the difference between Future and Stream. From what I understand, a Future returns a single value in the future, and a Stream returns multiple values ...
0 votes
1 answer
66 views
How Do I Conditionally Display a Message When This Future Returns an Empty List?
I have a view whose body is a FutureBuilder that gets a list of items from a Supabase backend. I'd like to do some conditional logic after the database connection such that if there IS a connection ...
0 votes
0 answers
31 views
Correct use of MobX stores without using FutureBuilder in Flutter
For the ideal separation of view and logic how does one initialize a mobx store that makes an asynchronous API call, for a page/widget without the use of FutureBuilder? e.g. I log in and navigate to ...
0 votes
0 answers
45 views
How Can I Force a Parent View to Update Itself?
I've got a small Flutter application with a structure like this: HomePage PageView Tab1 - list of data w/ FutureBuilder Tab2 - list of data w/ StreamBuilder Tab3 - list of data w/ ...
0 votes
1 answer
69 views
Causing unnecessary rebuilds
The thing is I was following a Youtube to tutorial to create a note app. I am not following the course exactly. Mainly implementing the same functionality but with an a lot better UI. Here is my code ...
0 votes
1 answer
62 views
SetState callback in parent widget does not refresh riverpod-based Future builder when returning to view
I'm building a social feed. I have a view for the list of posts, and a view for creating a post. When the user creates a post, I want to submit it to my backend, make a callback to my setState ...
0 votes
1 answer
41 views
Flutter: Await future from the past
If have a variable: Future<CarList?> carList; I set this variable every couple of seconds via a backend call. In UI, I use FutureBuilder to show carList, which works OK. But outside UI, how can ...
1 vote
0 answers
50 views
How can I retrieve 3 collections from Firestore in a FutureBuilder? Using Future.wait but getting errors
I need to pull three lists from Firestore before building my UI. Using a Future.wait I am getting an error. Here is my code: Here is the declaration of the variables for the futures: // Variables ...
0 votes
1 answer
104 views
How can I use async data in a FutureBuilder in Flutter?
I'm new to Flutter and trying to load data from Firestore and then use the data in my FutureBuilder. I have to load the data before I can build the UI because how I build it depends on the data. So I ...
1 vote
2 answers
205 views
Struggling to use future builder with multiple futures when loading init data with async call
I'm a bit stuck trying to implement futurebuilder in my main app (I have successfully used it elsewhere and I am struggling to get my head around what I am doing differently). I have recreated the ...
-1 votes
1 answer
98 views
Widget reloads again on child item/widget click in flutter
I have a stateful widget, i am facing a strange issue whenever i click on any sub item such as CustomDropDownButtonFormField and its open drop down menu even before selecting any option in drop down ...
0 votes
1 answer
41 views
Widget built by FutureBuilder works in application but is never created under Widget-tests
While exploring flutter, I tried to create a widget that renders an image from memory (at least for now) and shows an IconButton above it. To correct the size of an IconButton I need to get a real ...
1 vote
0 answers
40 views
The second futurebuilder gives anomalous behaviour, but why?
I work on a search screen page where the first futurebuilder is responsible for showing all usernames and profilepic when searching by username, and the second futurebuilder is responsible for showing ...
0 votes
0 answers
61 views
Flutter FutureBuilder's future never seems to complete
I'm new to Flutter and Dart, and I'm trying to build an app that allows users to sign in with Google and allows them to choose a Google Sheet to use with the app from the Google Sheets they have in ...