skip to Main Content

Flutter FlutterFire installation

I'm struggling with installing flutterfire on my Android Studio. I've successfully logged in with my account to Firebase, using firebase-tools-instant-win. I've successfully installed flutterfire in Android Studio, using the command line: dart pub global activate flutterfire_cli It automatically added flutterfire_cli:…

VIEW QUESTION

Flutter code doesn't run when firebase is initialized

So I have this code when I run it without initializing firebase; it works, but once I initialize firebase on the main.dart, it returns a black screen and some error: Error: Error: Assertion failed: file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core_web-2.0.2/lib/src/firebase_core_web.dart:228:11 C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 266:49 throw_ C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 29:3…

VIEW QUESTION

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
Back To Top
Search