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

Problems with image picker – Flutter

I am trying to use the image picker dependency, but I am running into a. a bit of a problem. Here is the function I created for the image picker: pickImage(ImageSource source)async{ final ImagePicker imagePicker = ImagePicker(); XFile? file =await…

VIEW QUESTION
Back To Top
Search