If you get errors about Firebase app not being configured, you need to open the iOS workspace in XCode and add the GoogleService-info.plist to the runner project. I had to edit out that step in the video because of some audio issues.
@saadhashmi39006 жыл бұрын
hello i want to get list of all registered user in firebase using flutter... how can i do that ... any idea
@abbyhuh14603 жыл бұрын
you have no idea how much your videos have helped me! i accidentally deleted my files and you brought it back to existence again with these tutorials. thank you so much 😄
@whitetiger39873 жыл бұрын
I couldn't. can you help me?
@MapMavericks5 жыл бұрын
This is the best flutter video I've ever watched. I wish Google would hire you to make the tutorial videos. Very nice! Thank you for sharing 😊
@franklynabraham68724 жыл бұрын
Absolutely agree!!
@nazmulhayat98424 жыл бұрын
thiss iss exactly WHAT I WAS LOOKING FOR PAST FEW DAYSSS thankkkk u sooo muccchh for thiss!!!
@othnielonyoutube4 жыл бұрын
I feel you man😂
@omarsharifrajme70614 жыл бұрын
I was totally confused about two days. You just save me brother. Thank you so much.
@huehuehuey50553 жыл бұрын
for anyone watching in 2021 the snapshot syntax has changed to snapshot.data[index].data()["yourFieldName"]. Note the data() function called on the document of the snapshot array
@SavitskyVadim3 жыл бұрын
man, you're awesome :D
@naznaz82753 жыл бұрын
you are my hero💖
@HarithaMadushankaharryze73 жыл бұрын
You literally saved my life! Thank you so much. You are an amazing soul!
@samii10144 жыл бұрын
waoooo such amazing content and explanation. you save my day thinks brother. hope you will make more videos like this. waiting to watch more flutter videos from your channel
@benjamindeworsop83484 жыл бұрын
Incredible video - amazingly clear and beautifully designed! THANK YOU
@mhmzdev5 жыл бұрын
You just saved hell of research for me... Thank U so much ❤️
@alokyes4 жыл бұрын
dost aapne to raaton neend wapis laadi, shukriya. My code is working now!
@aaselab4 жыл бұрын
Hi...Do you know why when ever I tried to run my code, the app won't lunch in simulator. It keep running runing on my vscode but never show up on my simulator. I'm not sure If it's something related to firebase that cause that problem. I'm just curious how you was able to run that. thanks
@guilhermelirio5 жыл бұрын
Your video lessons are perfect !! I learn a lot from your didactics. Make more videos !! Thank you!
@increadibleangel79805 жыл бұрын
snapshot.data.length in the itemc ount does not work: "The gtter 'length' was called on null
@mdtouseefraza34585 жыл бұрын
@@increadibleangel7980 You should check that your snapshot has data or not. if(snapshot.hasData){ then return this widget. } else{ return this widget. }
@increadibleangel79805 жыл бұрын
@@mdtouseefraza3458 ok
@johnbobymesadieu89223 жыл бұрын
Awesome video! Thank you, Sir!
@loitafoundation47453 жыл бұрын
Thx for the amazing vid. The important part is the last section. U should have expand it longer or explain that first, otherwise some people like me find it boring.
@vineet_kishore6 жыл бұрын
The quality of your videos are amazing so kindly make more videos covering more topics.
@christianlevels30495 жыл бұрын
Absolutely amazing explanation of Flutter Firebase integration
@erperejildo5 жыл бұрын
If you have dynamic documents you need to listen I'd recommend to use StreamBuilder instead of FutureBuilder
1 number bhai , very good explaination, 💙 se thanks.
@devgirl89685 жыл бұрын
amazing tutorial..new subscriber here...i'm new to flutter and all..and i'm learning a lot from you.thank you
@aragonite80524 жыл бұрын
how did he made the documents in firestore. Who will teach that?
@Winner4ever6 жыл бұрын
I was wondering why you didnt use the StreamBuilder
@FlutterTutorial3 жыл бұрын
very nice explanation
@ozgurdede67874 жыл бұрын
Thanks brother , it helped me a lot you can't imagine :)
@MohamedAlsaee4 жыл бұрын
You really awesome man 🙏❤ i wish you all the luck and all the success .
@Roman10-6 Жыл бұрын
very usefull, please make more tutorial, thats awaresome
@veyselkaya96555 жыл бұрын
Thank you so much. A great example
@faizansalam3 жыл бұрын
Your video is very usefull thank you buddy
@hubbataufique4984 жыл бұрын
Amazing video. i have a question how we can add scroll bar in list view builder
@codeaxen6 жыл бұрын
Samarth Agarwal Thanks for your Videos Have Benefited a lot... being inspired by your Videos Happen to have created a channel
@MrCyKaOWN4 жыл бұрын
The getter 'length' was called on null. Receiver: null Tried calling: length i entered firebase and it is connected, but it says they are empty ... how
@mateusflores99754 жыл бұрын
i have the same error, did u fix it?
@MrCyKaOWN4 жыл бұрын
@@mateusflores9975 try adding a if(connectionState == connectState.loading){ return Text(‘No connection’) } else { return ListView like this , because the length hasn’t gotten from the firebase and it’s null and it doesn’t have time to execute
@MrCyKaOWN4 жыл бұрын
@@mateusflores9975 I have already fixed it , u need an if else state beforehand
@mateusflores99754 жыл бұрын
@@MrCyKaOWN thanks bro, i'll try.
@khalidmohd49324 жыл бұрын
@@MrCyKaOWN where do i put this
@randycarrero66533 жыл бұрын
im having a huge time following along since i get errors way earlier and only get nulls and length problems
@malizupra4 жыл бұрын
You save my days..thanks!
@elsonxcode4 жыл бұрын
You're the best. thank you very much
@aaselab4 жыл бұрын
@Samarth Agarwal. Can you make a tutorial about how we can add search functionality to this project. If you can't, do you know is there other tutorial video that I can follow to add search function. Thank you
@andrewvillegas1224 жыл бұрын
@Samarth Agarwal thank you for this amazing tutorial! Just in time when I needed it :) Quick question-- now that I go this to work, how can I incorporate all these calls using models? I've heard it can be more organized this way and more efficient. What'a a good place to start using models with Cloud Firesotore? 1000% grateful!
@borisvanleuven62334 жыл бұрын
Thnx for making this tutorial!!!
@khalidmohammed88414 жыл бұрын
Hi can i use streambuilder or do i have to use futurebuilder??
@ghostfreakali065 жыл бұрын
Brilliant work.
@MrPalbi5 жыл бұрын
Hi, very nice. thank you. just a question, why MyHomePage is stateful rather than stateless? thank you
@slither3666 жыл бұрын
This lection is amazing, you are great friend :)
@juniorcastro16124 жыл бұрын
Thx for this video. I create a textfield for search, but i can't put to work. Can u help me pls?
@faizansalam3 жыл бұрын
Hey Samarth I am using a bottom navigation bar and everytime i switch tabs the page reloads do you know any way by which i can stop it from reloading the pages?
@kaouthergacem81352 жыл бұрын
great tutorial but I had a lot of errors: The operator '[]' isn't defined for the type 'Object' when trying to display the title of the post on the details page I solved it by casting "as DocumentSnapshot". I also changed the type Snapshot to AsyncSnapshot because it was throwing an error.
@ShreyashGajbhiye-su9dc2 жыл бұрын
Plz tell me how to solve this..
@kaouthergacem81352 жыл бұрын
@@ShreyashGajbhiye-su9dc I'm sorry I don't remember how
@melonpun5 жыл бұрын
Thank a lot for the great video brother. I am new to programming and I have just started using Flutter. I have a question, I am planning to make a photo gallery app that has a main category and each main category segues to subcategory and then each subcategory segues to a list of images. Can I do that using firebase? And if you may, can provide with me tips please?
@thesamarthagarwal5 жыл бұрын
Yes. Sure you can do it with Firebase. Use Firebase Storage for storing images, get the URL and save the URL in a document. One document per image. In the same document, store information like category, tags and whatever you want.
@mlgen74 жыл бұрын
Thanks for the tutorial. I wanted to expand this and had a question. Q. I have a DB with data like ID, Name, Desc and Location. Where I wanted to categorise the returned collection into a different location. Ex: 1, test, testDesc, USA 2, test2, testDesc, Mexico 13 test3, testDesc, USA Once the _data (a Future) gets the data. Can it be managed into Lists of Array? Any suggestions here, please.
@siddhantagarwal66496 жыл бұрын
Very good and keep it up bro.....
@prajaktpatil14 жыл бұрын
This is a good example. I want to know that how we authenticate with the email and password. and another question is that how we can show the list per user (means the different users may have the different lists)?. can you please guide regarding with..?
@frankbanini88846 жыл бұрын
Flutter screens on github, thanks for sharing
@AtheGomez4 жыл бұрын
Hi! Please, how to check if a snapshot already exists in the firestore? we have a big mistake when the data is empty (null)
@simransingh15076 жыл бұрын
Great Work Bro !
@parwandaha30915 жыл бұрын
what if I have a subcollection within each post on my firestore data base, lets say "relatedposts"? how do I query each post so that when navigating to the details page, the subcollection data should also show up?
@mehuljain72675 жыл бұрын
This is amazing. I have one doubt though - I am working on a notes app and when I create a new note, firestore generates a random id to store it. But when I access it back, I want it to remain at top but instead it gets somewhere in the middle. How to fix this?
@Escalator09214 жыл бұрын
How do I search and filter the listed items, sir? Can you help with that please?
@aditikumar67864 жыл бұрын
Current state of connection to the asynchronous computation. 'connectionState' can't be used as a setter because it's final. Try finding a different setter, or making 'connectionState' non-final. plss help....
@SuperAnkursaini4 жыл бұрын
Thanks
@ndragonxkarnovx42866 жыл бұрын
Anyone get this error after trying to use firestore --> library com.google.android.gms:play-services-base is being requested by various other libraries at [[15.0.1,15.0.1]], but resolves to 16.0.1
@pluckcitizen6 жыл бұрын
Is it possible to do a ListView of all fields in a DocumentSnapshot without knowing the field names?
@raghav42966 жыл бұрын
Thanks Samarth. Is it possible to share the above code in your github account? Thanks for your super cool FlutterScreens and your effort to share your knowledge. Much appreciated!
@hashem_nayra4 жыл бұрын
If any one had an error like: length is null, the error is in the Firebase rules! You just needed to change it from " read, write if false; " to " read, write; " Though, this is not secure! You just use this for testing proposes, if you are going to deal with the real world and publishing you app, please consider reading the "Firebase rules documentation" first! .. Hope this help! =)
@laptrinhwindowsform3 жыл бұрын
Thanks 😍
@innovafrique6 жыл бұрын
Good video, thx a lot. Can you show the name or the avatar image for the user who post the post your are using??? because I see that in post collection your are using owner with a id. please help me a have that problem
@vlycie66284 жыл бұрын
I just subscribed to this channel..great content.. i have a question . How can I make the detail page be like a pageview scroll to left or right?
@thesamarthagarwal4 жыл бұрын
Put the PageView on the detail page. You can use a PageViewController to set the default page of the PageView.
@vlycie66284 жыл бұрын
@@thesamarthagarwalwould it be another call from firestore to have the detail page list for horizontal scroll? If it's not too much for you..will you please put out a tutorial about it? Thank you in advance 😊❤️
@thesamarthagarwal4 жыл бұрын
@@vlycie6628 if you have that data, then you can pass it to the detail page (saving the call) but if you don't have it, you will have to make an extra call to get that data.
@vlycie66284 жыл бұрын
@@thesamarthagarwal yes i've done it. Thanks ❤️ But I can't seem to have this: I click on the listview item(item 1), i land on the detail page(detail of item 1), still on the detail page of item 1, I swipe to the left to go to the detail page of item 2. can't seem to find solution online
@hamzadaiz90024 жыл бұрын
thank you very much !!!!!!!!!!!
@vinit_poojary4 жыл бұрын
I am getting an error before list display error - NoSuchMethodError: The getter 'length' was called on null . is this because of await this error only shows for a second any idea how can I avoid it
@venkatashish22194 жыл бұрын
Amazing video Samarth. In detailPage, instead of having a container in "body" I am trying to call a class which takes an argument. And I am sending the argument as widget.post.data["some key"]. But when I am trying to use the sent value in the class I am getting value as null. Can you help me with this.
@pranavsheth24062 жыл бұрын
The operator '[]' isn't defined for the type 'Object? Function()'. sir i am having this error while getting data in detail page in title or in subtitle what can i do?
@ShreyashGajbhiye-su9dc2 жыл бұрын
If you got the solution plz tell me ..
@adarshjaiswal61774 жыл бұрын
how to fetch data from firestore to an product list models then display in list view widgets instead of directly fecthing it from firestore
@nanangkho93784 жыл бұрын
How to implement with search bar. ?
@florianrohrauer96266 жыл бұрын
snapshot.data.length in the itemcount does not work: "The gtter 'length' was called on null". Help please :3
@tuelimishane6 жыл бұрын
Were you able to fix this issue?
@garethtaufao6 жыл бұрын
I get the same error as well
@tuelimishane6 жыл бұрын
@@garethtaufao Check your firestore Rules. My firestore rule was denying permission to read my data. So I changed the Rules to: allow read; allow write: if false;
@garethtaufao6 жыл бұрын
@@tuelimishane thanks did it work for you? I'll give it a try.
@tuelimishane6 жыл бұрын
@@garethtaufao yes it did
@paulogorenstein7705 жыл бұрын
Could you give me some lesons of Provider, stream, to provide querysnapshots?
@firaskudsy6 жыл бұрын
if we move the getPosts() in the initState we will not get an updated collection .. in case we add a document while the app is running
@thesamarthagarwal6 жыл бұрын
True. For that you should subscribe to the snapshots() and use a StreamBuilder instead. Using the FutureBuilder with the future that calls Firebase directly is exhaustive and in real apps, will result in huge Firebase bills.
@codewithaustin4 жыл бұрын
how to update the firestore field data from the Application. Please answer quick
@MaddGuss5 жыл бұрын
Awesome man! Can you make a video with compound queries please??
@ugurkorkmaz79685 жыл бұрын
Problems may arise as a result of updating packages sometimes. Future getPosts() async { var firestore = Firestore.instance; Query q = firestore.collection('post'); QuerySnapshot querySnapshot = await q.getDocuments(); return querySnapshot.documents; }
@vinit_poojary4 жыл бұрын
await is causing problem at the start it gives null for length
@shivamagarwal76236 жыл бұрын
at the end of this video you explain how to stop your listview.builder to rebuild after navagating to next pange .....can you do this for stram builder its rebuilding everytime ..................
@abdulrhmanishag15955 жыл бұрын
How can i Display json data using GridView
@47474774747447745 жыл бұрын
NIce Work
@jaypatel67703 жыл бұрын
THIS PART IS NOT WORKING Firestore.instance and return qn.documents gives error please help Future getFaculty() async { var firestore = Firestore.instance; QuerySnapshot qn = await firestore.collection("faculty").getDocuments(); return qn.documents; }
@nimalviju1965 жыл бұрын
Nice ...
@TheFatlifter2856 жыл бұрын
how to check if a snapshot already exists in the firestore?
@aragonite80524 жыл бұрын
I am getting an error as The getter length was called on null. Somebody tell me what to do.
@thesamarthagarwal4 жыл бұрын
Call .length only when snapshot.data is not null.
@roebenhood5 жыл бұрын
How to show specific data/post?
@arsenemwape95936 жыл бұрын
how to get next value on master detail page ?
@shubhamarora5476 жыл бұрын
Sir please make video on angular 6 and seperate video on firebase
@GrantImbo5 жыл бұрын
Hey guys, come someone please help me? I have the same setup as this. However, I want to add a feature to sort the post list. My setup goes like this... I have a separate ListView (vertical) which is the categories. Now when a user clicks this, I want to sort the post list. Can someone please help me?
@jeda8745 жыл бұрын
Hi Samarth, thanks for sharing this video, i use your code in my app. How to apply Searchdelegate in this project? Hope you can help me.
@Sachin-ry7sd4 жыл бұрын
Anybody please help me I/flutter (10297): The following NoSuchMethodError was thrown building FutureBuilder(dirty, state: I/flutter (10297): _FutureBuilderState#fc53c): I/flutter (10297): The getter 'length' was called on null. I/flutter (10297): Receiver: null I/flutter (10297): Tried calling: length
@vinit_poojary4 жыл бұрын
I got the same error I think it because of await
@tuelimishane6 жыл бұрын
I am getting an error "Getter length was called on null" at itemCount: snapshot.data.length,. any idea?
@ugurkorkmaz79685 жыл бұрын
Future getPosts() async { var firestore = Firestore.instance; Query q = firestore.collection('post'); QuerySnapshot querySnapshot = await q.getDocuments(); return querySnapshot.documents; } Just fix this
@prashantgandhi88226 жыл бұрын
How can I pass the firebase database from one screen to another screen ?
@thesamarthagarwal6 жыл бұрын
Sorry, I did not understand. Can you please explain your question?
@prashantgandhi88226 жыл бұрын
I make an app in flutter and backend use firebase real time database......so I fetch the data on home screen(in ListView) then I want to send particular selected data(select from listview) on next screen @@thesamarthagarwal
@wahyukuncoro67215 жыл бұрын
how to show owner data in list? please help me
@ThanhNguyen-xg7un5 жыл бұрын
Great tutorial! Really love it! Which code should I write to get this list sorted?
@gnappo30004 жыл бұрын
but the serialization?
@innovafrique6 жыл бұрын
Good
@zubairayazasim51873 жыл бұрын
can you share the code of this tutorial?
@sherryacademy67955 жыл бұрын
THANKS
@AndresAngelo5 жыл бұрын
Here is the first part codigo of the code, I am getting an error " the getter length is called null" import 'package:flutter/material.dart'; import 'package:cloud_firestore/cloud_firestore.dart'; void main() => runApp(MyApp()); class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return MaterialApp( title: 'Flutter Demo', theme: ThemeData( primarySwatch: Colors.blue, ), home: MyHomePage(title: 'Flutter Demo Home Page'), ); } } class MyHomePage extends StatefulWidget { MyHomePage({Key key, this.title}) : super(key: key); final String title; @override _MyHomePageState createState() => _MyHomePageState(); } class _MyHomePageState extends State { @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( title: Text(widget.title), ), body: ListUsers(), // ); } } //WIDGET 1 class ListUsers extends StatefulWidget { @override _ListUsersState createState() => _ListUsersState(); } class _ListUsersState extends State { Future getUsers() async { var firestore = Firestore.instance; QuerySnapshot qn = await firestore.collection('users').getDocuments(); return qn.documents; } @override Widget build(BuildContext context) { return Container( child: FutureBuilder( future: getUsers(), builder: (_, snapshot) { if (snapshot.connectionState == ConnectionState.waiting) { return Center( child: Text('LOADING...'), ); } else { return ListView.builder( itemCount: snapshot.data.length, itemBuilder: (_, index) { return ListTile( title: Text(snapshot.data[index].data["email"]), ); }); } }), ); } } //WIDGET 2 class DetailUsers extends StatefulWidget { @override _DetailUsersState createState() => _DetailUsersState(); } class _DetailUsersState extends State { @override Widget build(BuildContext context) { return Container(); }
@gilmcglory37486 жыл бұрын
Thanks for this very instructive Flutter tutorial. I subscribed to your Udemy "Ionic 3 Apps for WooCommerce" course. Is there any chance of you doing a Udemy "Flutter Apps for WooCommerce" course?
@thesamarthagarwal6 жыл бұрын
Thank you Gil. I am thinking about it now because a lot of wonderful people have reached out to me regarding that. I will keep everyone posted about it.
@whitetiger39874 жыл бұрын
yapamadım hocam...
@AndresAngelo5 жыл бұрын
no working, errors
@aragonite80524 жыл бұрын
I doubt anyone has actually tried making this app. Because I got an error and I don't understand how in this video everything just worked fine. Similarly, one more video of this channel I was getting error but these videos don't show any error I don't know how!!!!