-
Notifications
You must be signed in to change notification settings - Fork 261
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Display query results on screen #154
Comments
Can you please give more data? What do you want to have on the screen and what is the problem? |
So, you know apps like uber eats, that shows the image name, image profile, menu on the client app? That’s what I’m trying. I have a collection called companies on my Firabase, with name image, and on the client app, I want to display the nearby costumized name and image on the client screen |
Ok. Use any widgets you want. |
Ok, but my problem is, I can’t do that. I tried a lot of different ways, with streamBuilder, ListViews, I’m just trying to find an explanation on how to some sort of loop through the items on Firebase, that I did but always get an error similar to “Stream Object not iterable” |
can you please install the latest version and post here |
Ok, this is where I am trying to display: And this is the error I am getting:
This is the result of print(snapshot.data):
|
You should unwrap all possible responses. Please use an example here After that, you will have exact error data. Right now it is not possible to understand the reason.
|
Hey, @awaik, can you help me with one more thing? I've done this, according to the GeoFlutterFire docs: `Stream nearbyComp() async* {
}` And I am trying to return it here:
But I get an error: So, on the builder, I change it to this:
But then, I get an error
Do you know what could be wrong, and a way to fix it? |
Hey @guijacobus2 |
Hey, @awaik,
|
Tried chaning to this:
But also returns this error message:
|
I have this code, to query through the collection, but I want it to display on my Screen.
Then, I have this StreamBuilder
What is the correct Widget to display this on my screen? And I want to show only a few docs on the collection, like company name and imageURL, not email
The text was updated successfully, but these errors were encountered: