Probably a dumb question... but how would you access the data if you just needed a "mountain" instead of the listview itself? like if you had to pass a List as a parameter and wanted that same data?
Great idea. I'm working my way to larger examples with Firebase. Thanks for the feedback. I'm about to record another firebase real time database example which should be out soon.
Nice video ... But I have one question ...how can put text input fill to my app by which I can add data to cloud firestore.. And also add photo to firestore..
Thank you. I've prepped my firestore video and will be recording it soon. I'll queue a video on the cloud storage, uploading too. Good idea. Thanks for your feedback!
Your channel is amazing but the thumbnails dont give justice to your content and that is why your videos are not getting views. Please improve your thumbnails.
^ 100% agree with this, this video gave me the exact help I needed but I literally put off watching it the whole of yesterday because of the thumbnail. I feel shallow for doing that but it does really make a difference when every other video is screaming for your attention. Regardless, great vid and I subbed so I won't miss any more useful tips :)
Thank you! And thanks for the feedback. Try this... void _testGet() async { DocumentSnapshot snapshot = await Firestore.instance.collection('mountains').document("-LA6NFJqnWOY5IGEr9AK").get(); String title = snapshot.data['title'] as String; print("title is $title"); }
does not work, it has an error in the mountainList Class with the stream class MountainList extends StatelessWidget { @override Widget build(BuildContext context) { return new StreamBuilder( stream: Firestore.instance.collection('user').snapshots, builder: (BuildContext context, AsyncSnapshot snapshot) { if (!snapshot.hasData) return new Text('Loading...'); return new ListView( children: snapshot.data.documents.map((document) { return new ListTile( title: new Text(document['title']), subtitle: new Text(document['type']), ); }).toList(), ); }, ); } }
I have tried to use FutureBuilder, i have issues over here is that first time it return empty set(snapshot.hasError is true) then i return loading widget, next time it return valid set this time new List is not updated anything wrong i may be doing, and unfortunately i was trying this on the day this video was published, is there any live coding session i can attend it it free :)
I can't picture what the issue is yet. StackOverflow may be a better place to ask this, or in the gitter.im/flutter/flutter channel. I have noticed there are some configs the FlutterBuild causes more challenges with. So what I usually do is create a variable and swap the widget out after the query. I cover that in some of my other episodes. I'll be publishing a new one shortly that has it too.
Hi Mr Donnelson, Many thanks fot your tutorials. It's real helpful also for me. After running my flutter app I received some error related with QuerySnapshot. Please check it & help me how I can solve it. Thks! --- compiler message: lib/main.dart:59:53: Error: A value of type '() → dart.async::Stream' can't be assigned to a variable of type 'dart.async::Stream'. compiler message: Try changing the type of the left hand side, or casting the right hand side to 'dart.async::Stream'. compiler message: stream: Firestore.instance.collection('kids').snapshots, compiler message: ^ Compiler failed on /home/startup/AndroidStudioProjects/app/lib/main.dart FAILURE: Build failed with an exception. ---
I would have to see the code configuration. From what it looks like the left side variable declaration doesn't match the return type. A shot in the dark, maybe its a future, and just maybe adding an await, might return the variable you expect in the future. It's hard to tell with out the code.
Very thorough explanations of the steps to get everything running. Great work
Thank you so much for this great video. Very simple and straight forward.
Very well explained, I like the method where is shown where to get the information. Thanks
Probably a dumb question... but how would you access the data if you just needed a "mountain" instead of the listview itself? like if you had to pass a List as a parameter and wanted that same data?
Thank you for sharing this informative video! Happy New Year to you~
Good Quality Mic.. Thanks
Its very helpful for me ...
Great to hear, thanks for the feedback!
I also want to know more about redux ... Actually want learn many things ... If you guide me then its very helpful for me ..
What if I just want to save the data in a list?
Did u find any solutions for your question? Im in the same situation
Same Problem Here.... Please reply is you found any solution.
Please make one series on making chat application using firebase as backend.
Great idea. I'm working my way to larger examples with Firebase. Thanks for the feedback. I'm about to record another firebase real time database example which should be out soon.
Thank you!
Can you please show us how you combined two or more QuerySnapshot streams into one and then use in the StreamBuilder?
This is great, but how do you do paging with Firestore and the streambuilder?
Nice video ... But I have one question ...how can put text input fill to my app by which I can add data to cloud firestore.. And also add photo to firestore..
Thank you. I've prepped my firestore video and will be recording it soon. I'll queue a video on the cloud storage, uploading too. Good idea. Thanks for your feedback!
Hey, how do you retrieve data from two collections and build the list items?
Your channel is amazing but the thumbnails dont give justice to your content and that is why your videos are not getting views. Please improve your thumbnails.
^ 100% agree with this, this video gave me the exact help I needed but I literally put off watching it the whole of yesterday because of the thumbnail. I feel shallow for doing that but it does really make a difference when every other video is screaming for your attention. Regardless, great vid and I subbed so I won't miss any more useful tips :)
right
Thank you for the great video!
Do know, how can I get a single item from the Firestone and not the whole collection?
Thank you! And thanks for the feedback. Try this...
void _testGet() async {
DocumentSnapshot snapshot = await Firestore.instance.collection('mountains').document("-LA6NFJqnWOY5IGEr9AK").get();
String title = snapshot.data['title'] as String;
print("title is $title");
}
Hi Mr. Brandon please help me in adding firebase extensions in pubspec.yaml. Im always facing issue with versions
O meu deu erro aí eu coloquei ( ) em snapshot : ('mountains').snapshots( ) ai funcionou.
Thank you!
does not work, it has an error in the mountainList Class with the stream
class MountainList extends StatelessWidget {
@override
Widget build(BuildContext context) {
return new StreamBuilder(
stream: Firestore.instance.collection('user').snapshots,
builder: (BuildContext context, AsyncSnapshot snapshot) {
if (!snapshot.hasData) return new Text('Loading...');
return new ListView(
children: snapshot.data.documents.map((document) {
return new ListTile(
title: new Text(document['title']),
subtitle: new Text(document['type']),
);
}).toList(),
);
},
);
}
}
I have tried to use FutureBuilder, i have issues over here is that first time it return empty set(snapshot.hasError is true) then i return loading widget, next time it return valid set this time new List is not updated anything wrong i may be doing, and unfortunately i was trying this on the day this video was published, is there any live coding session i can attend it it free :)
I can't picture what the issue is yet. StackOverflow may be a better place to ask this, or in the gitter.im/flutter/flutter channel. I have noticed there are some configs the FlutterBuild causes more challenges with. So what I usually do is create a variable and swap the widget out after the query. I cover that in some of my other episodes. I'll be publishing a new one shortly that has it too.
Please make a video on flutter fireabse facebook Oauth.
Hi Mr Donnelson,
Many thanks fot your tutorials. It's real helpful also for me.
After running my flutter app I received some error related with QuerySnapshot. Please check it & help me how I can solve it. Thks!
---
compiler message: lib/main.dart:59:53: Error: A value of type '() → dart.async::Stream' can't be assigned to a variable of type 'dart.async::Stream'.
compiler message: Try changing the type of the left hand side, or casting the right hand side to 'dart.async::Stream'.
compiler message: stream: Firestore.instance.collection('kids').snapshots,
compiler message: ^
Compiler failed on /home/startup/AndroidStudioProjects/app/lib/main.dart
FAILURE: Build failed with an exception.
---
I would have to see the code configuration. From what it looks like the left side variable declaration doesn't match the return type. A shot in the dark, maybe its a future, and just maybe adding an await, might return the variable you expect in the future. It's hard to tell with out the code.
Thanks and thanks for for the feedback too.
Yes! You're right. Thank you (issue closed).