firebase - 为什么 Flutter Streambuilder 小部件 ( onAuthStateChanged ) 对象给出红色下划线?
问题描述
我已经在我的颤振应用程序中从 firebase 导入了所有依赖项和包:
解决方案
该方法onAuthStateChanged
现在是您正在使用的版本中的authStateChanges。
您需要从以下位置更改代码:
FirebaseAuth.instance.onAuthStateChanged
至:
FirebaseAuth.instance.authStateChanges
推荐阅读
- matlab - 在 Matlab 中删除特定字符串
- javascript - 为什么我的删除项目事件不会发送给父级?
- c# - 使用多线程将数据插入 Redis
- android - 如何在android studio中获取通话记录(联系人姓名、号码、日期、类型、持续时间)
- javascript - 如何使用 DoodleNerd 的 CSS 文本框提取文本?
- laravel - 使用 VueX 和 Laravel Passport 进行身份验证
- javascript - nuxt 2.8 中的全局 SCSS mixins
- powershell - 如何使用 PowerShell 循环检查现有文件夹?
- kotlin - 如何在 Kotlin 中使用运算符重载将数字除以数字向量
- c++ - 分配器感知`std::array`风格的容器?