skip to Main Content

Firebase – The argument type 'Null' can't be assigned to the parameter type 'QuerySnapshot<Object?>'

import 'package:brew_crew/services/auth.dart'; import 'package:cloud_firestore/cloud_firestore.dart'; import 'package:flutter/material.dart'; import 'package:provider/provider.dart'; import 'package:brew_crew/services/database.dart'; class Home extends StatelessWidget { final AuthService _auth = AuthService(); @override Widget build(BuildContext context) { return StreamProvider<QuerySnapshot>.value( value: DatabaseService(uid: '').brews, initialData: (null), child: Scaffold( backgroundColor: Colors.brown[50], appBar: AppBar( title: Text('Brew…

VIEW QUESTION
Back To Top
Search