skip to Main Content

A value of type 'Stream<List<AppUserData>>' can't be returned from the function 'users' because it has a return type of 'Future<List<AppUserData>>' – Flutter

I am building a Chat App in flutter with firebase. So I created a file where I connect the firebase database to my App : import 'package:cloud_firestore/cloud_firestore.dart'; import 'package:socket/services/user.dart'; class DatabaseService { final String? uid; DatabaseService({this.uid}); final CollectionReference userCollection =…

VIEW QUESTION

Unable to send log event in html Firebase Analytics

Firebase analytics problem in JS Hello I am unable to send lo event in my html and js website. My code <html> <head> <title>Test</title> </head> <body> <script type="module"> import { initializeApp } from "https://www.gstatic.com/firebasejs/9.15.0/firebase-app.js"; import { getAnalytics } from "https://www.gstatic.com/firebasejs/9.15.0/firebase-analytics.js";…

VIEW QUESTION

Flutter web throwing error when use firebase

I have created new project in flutter and added firebase using flutterfire configure command after that i have initialized my project like below void main() async { WidgetsFlutterBinding.ensureInitialized(); await Firebase.initializeApp(options: DefaultFirebaseOptions.currentPlatform); runApp(const MyApp()); } then it started throwing error which…

VIEW QUESTION
Back To Top
Search