skip to Main Content

Instance of _Future<int> is all I get when I try to get the total 'document' of my 'collection' in Firestore – Flutter

Following is my code. I'm trying to get all the 'Babies' which are in documents: class _HomePageeState extends State<HomePagee> { String t_babies = getCount().toString(); } Future getCount() async { return FirebaseFirestore.instance.collection('Babies').snapshots().length; } Instead I get this error: instance of _future<int>…

VIEW QUESTION

Validation in Flutter

I want to know how to make a validation in flutter where IF a TextFormField is filled then when you hit "send" then it doesn't let you go to the next section until all other textformfields must be filled, BUT…

VIEW QUESTION
Back To Top
Search