我使用 Firebase 网络插件并设法使用 Firestore 和身份验证。现在,我正在尝试启用 Firebase 存储,但是当我实例化存储时,我会遇到此错误
tried to call a non-function, such as null: 'dart.global.firebase.storage
对于 Firestore 和身份验证,我使用:
import 'package:firebase/firebase.dart' as fb;
import 'package:firebase/firestore.dart';
fb.Auth _firebaseAuth = fb.auth();
Firestore _firestore =fb.firestore();
用于存储:
fb.Storage storage = fb.storage();