Flutter & Firebase App Tutorial #18 - Firestore Streams

preview_player
Показать описание
----------------------------------------

🐱‍💻 🐱‍💻 Course Links:

🐱‍💻 🐱‍💻 Other Related Courses:

Рекомендации по теме
Комментарии
Автор

For those who has error in initialData couldn't be null
1. watch the next video first
2. then replace the function _brewListFromSnapshot in database service file with

List <Brew> snapshot){
return snapshot.docs.map((doc){
return Brew(
name: doc.get('name') ?? '',
sugars: doc.get('sugars') ?? '0',
strength: doc.get('strength') ?? 0
);
}).toList();
}
3. put initial Data like this
initialData: [],

fareswaheed
Автор

Problem: brews return null.
Sol:
<list.dart>
final brews =
if(brews!=null){
for(var doc in brews.docs){
print(doc.data());
}
}

<home.dart>
return
initialData: null,
value: DatabaseService(uid: '').brews,

eitantza
Автор

00:53 just the time to tap the like button !

davidfrisch
Автор

Error - > The return type 'Null' isn't a 'QuerySnapshot<Object?>', as required by the closure's context.

make the snapshot nullable : )
like this - > return

kishansindhi
Автор

Following your tutorials is so much fun :D good work senpai

akrazildeluxe
Автор

00:53

Easily the best moment in the whole video xD

ammd
Автор

Just a quick heads-up for those using emulator - make sure you are emulating a device with GooglePlay services enabled and that they are updated. The app, or more precisely the firebase, will not work without them.

yhgtbsm
Автор

Thank you so much for making this provider example simple. Sending 1000 likes

wesleybarnes
Автор

The property documents has been deprecated so you should use docs instead
as well as the property data not it is a function data(); like that

dxb_coder
Автор

Excellent!!!! I am really waiting for your next video!!!

rabatistan
Автор

👏👏😍😊 I am at 1 minute still and i am already enjoying it so much. Thanks for fasting forward when deleting the users! Lol

angelosorte
Автор

Could you let me know how to create a stream to retrieve from a firebase subcollection. Went through your tutorials over & over again to understand, but couldn't firgure out a way to understand how to retrieve from subcollections

agentyorlim
Автор

Hi Ninja!
Do you plan someday create tutorials on ionic and React Native?
That would be great. You are definitely the one who can explain it the best way

johnconnor
Автор

for the people who are getting error while printing, change data => data() in loop

razashabbir
Автор

For anyone getting an error at 8:17 when you type (context), check that you have not removed @override and the statement below it.

ThePianoKid
Автор

I am having a problem that lets say i have already signed in and then when the next time i open the app it starts with the SignIn page and then automatically goes to Home() page.I mean instead it should start the app with Home() page directly because the user has already logged in from last time and not logged out.Because of this i am not able to use brews.documents command as it gives the exception that "cannot operate documents on null value" .How can i solve this?Thanks

anoopsinghrana
Автор

Will this work when the phone's display is off?

yasharaliabbasi
Автор

I am looking forward to the next videos! Thanks for the helpful content. Currently I am working on a WhatsApp clone and I needed streams but could not found a good tutorial or instructions in the internet. Thanks!

jns
Автор

I am having a hard time understanding if I can use this approach as well if I decide to do an infinite scrolling list using a scroll controller. Is that possible using this approach? How would I map the streams? I would need to use pagination - so I am confused on how .snapshots() would need to work.

abdallahshaban
Автор

The best flutter tutorial series i have seen yet.Very clean and understandable...How do we retrieve GOOGLE MAP data(Markers) from firestore in the same manner.

URGENT HELP NEEDED PLS .Thank you in Advance

abdulhakimosman