草庐IT

firebase-notifications

全部标签

firebase - flutter : Cannot display image from image url firestore

我尝试使用图像url显示来自firestore的数据。我使用FutureBuilder从firestore获取我的图像url值。但我有问题,因为我的图像无法显示并显示红屏。我在调试控制台中收到如下消息:Anotherexceptionwasthrown:Abuildfunctionreturnednull.I/flutter(13506):Anotherexceptionwasthrown:NoSuchMethodError:Themethod'[]'wascalledonnull.I/flutter(13506):Anotherexceptionwasthrown:NoSuchMet

firebase - flutter : Cannot display image from image url firestore

我尝试使用图像url显示来自firestore的数据。我使用FutureBuilder从firestore获取我的图像url值。但我有问题,因为我的图像无法显示并显示红屏。我在调试控制台中收到如下消息:Anotherexceptionwasthrown:Abuildfunctionreturnednull.I/flutter(13506):Anotherexceptionwasthrown:NoSuchMethodError:Themethod'[]'wascalledonnull.I/flutter(13506):Anotherexceptionwasthrown:NoSuchMet

firebase - 如何使用 Flutter 从 Firebase 登录打印 PlatformException 的用户可读部分?

在我的登录页面上工作时,我想显示登录错误。我成功地将以下内容打印为error...PlatformException(sign_in_failed,FIRAuthErrorDomain,Theemailaddressisbadlyformatted.)如何只打印/显示Theemailaddressisbadlyformatted? 最佳答案 我并不是说这是最好的实现方式,或者我不知道这是否是唯一的实现方式,但这就是我实现它的方式。现在它运行良好。voidshowErrorToast(Stringerror){//Icallthism

firebase - 如何使用 Flutter 从 Firebase 登录打印 PlatformException 的用户可读部分?

在我的登录页面上工作时,我想显示登录错误。我成功地将以下内容打印为error...PlatformException(sign_in_failed,FIRAuthErrorDomain,Theemailaddressisbadlyformatted.)如何只打印/显示Theemailaddressisbadlyformatted? 最佳答案 我并不是说这是最好的实现方式,或者我不知道这是否是唯一的实现方式,但这就是我实现它的方式。现在它运行良好。voidshowErrorToast(Stringerror){//Icallthism

FirebaseAuth : getGoogleApiForMethod() returned Gms: com. google.firebase.auth.api.internal.zzal@489

当我尝试通过电话进行身份验证时,出现以下错误。W/BiChannelGoogleApi(12340):[FirebaseAuth:]getGoogleApiForMethod()returnedGms:com.google.firebase.auth.api.internal.zzal@489我在Stackverflow和其他地方检查过相同的错误,但没有在任何地方找到正确的解决方案。pubspec.yml中的变化dependencies:flutter:sdk:flutter#ThefollowingaddstheCupertinoIconsfonttoyourapplication.

FirebaseAuth : getGoogleApiForMethod() returned Gms: com. google.firebase.auth.api.internal.zzal@489

当我尝试通过电话进行身份验证时,出现以下错误。W/BiChannelGoogleApi(12340):[FirebaseAuth:]getGoogleApiForMethod()returnedGms:com.google.firebase.auth.api.internal.zzal@489我在Stackverflow和其他地方检查过相同的错误,但没有在任何地方找到正确的解决方案。pubspec.yml中的变化dependencies:flutter:sdk:flutter#ThefollowingaddstheCupertinoIconsfonttoyourapplication.

firebase - Cloud Firestore 不断重新下载文档 - Flutter

这发生在我的主应用程序中和我用给定的代码实验室复制它:https://codelabs.developers.google.com/codelabs/flutter-firebase/index.html?index=..%2F..index#10import'package:cloud_firestore/cloud_firestore.dart';import'package:flutter/material.dart';voidmain()=>runApp(MyApp());classMyAppextendsStatelessWidget{@overrideWidgetbuild

firebase - Cloud Firestore 不断重新下载文档 - Flutter

这发生在我的主应用程序中和我用给定的代码实验室复制它:https://codelabs.developers.google.com/codelabs/flutter-firebase/index.html?index=..%2F..index#10import'package:cloud_firestore/cloud_firestore.dart';import'package:flutter/material.dart';voidmain()=>runApp(MyApp());classMyAppextendsStatelessWidget{@overrideWidgetbuild

firebase - 如何区分使用 Firebase 进行 flutter 身份验证的异常?

我有Firebase登录我的应用程序。我想向用户报告异常,以便他可以正确登录。在signInWithEmailAndPassword(_email,_password)中是电子邮件和密码登录。测试我可以创建两个不言自明的异常1/Error:PlatformException(exception,没有该标识对应的用户记录,用户可能已被删除,null)2/Error:PlatformException(exception,Thepasswordisinvalidortheuserdoesnothaveapassword.,null)我正在使用trycatchblock来捕获错误。这是我的代

firebase - 如何区分使用 Firebase 进行 flutter 身份验证的异常?

我有Firebase登录我的应用程序。我想向用户报告异常,以便他可以正确登录。在signInWithEmailAndPassword(_email,_password)中是电子邮件和密码登录。测试我可以创建两个不言自明的异常1/Error:PlatformException(exception,没有该标识对应的用户记录,用户可能已被删除,null)2/Error:PlatformException(exception,Thepasswordisinvalidortheuserdoesnothaveapassword.,null)我正在使用trycatchblock来捕获错误。这是我的代