我正在尝试创建一个用防火墙注册的登录,我可以注册,数据也来了,但是当我尝试用同一个用户登录时,我不能登录,我能做些什么来帮助我呢?
E/ (package:flutter/src/services/platform_channel.dart:177:18) (20570):错误: StandardMethodCodec.decodeEnvelope /lib/ui/ui_dart_state.cc(209)未处理的异常:firebase_auth/未知给定字符串为空或空E/颤振(20570):#0 StandardMethodCodec.decodeEnvelope MethodChannel._invokeMethod StandardMethodCodec.decodeEnvelope E/MethodChannel._invokeMethod (20570):#1 MethodChannel._invokeMethod MethodChannel._invokeMethod E/MethodChannel._invokeMethod (20570):e/StandardMethodCodec.decodeEnvelope(20570)(20570):#2 (package:flutter/src/services/platform_channel.dart:377:43) E/颤振(20570):E/ MethodChannelFirebaseAuth.signInWithEmailAndPassword (package:firebase_auth_platform_interface/src/method_channel/method_channel_firebase_auth.dart:474:12) E/颤振(20570):#3 MethodChannel.invokeMapMethod E/颤振(20570):E/颤振( 20570):#4 FirebaseAuth.signInWithEmailAndPassword (包装:firebase_auth/src/firebase_auth)。飞镖:550:7)E/颤振(20570):E/颤振(20570):#5 AuthService.signIn (包装:截至4/作者:10:16)E/颤振(20570):E/颤振(20570):
发布于 2022-04-10 19:59:49
FirebaseAuth.signInWithEmailAndPassword()需要两个参数,字符串电子邮件和字符串密码。当你调用这个方法时,我想颤栗是在告诉你其中一个是空的。确保参数是通过TextEditingControllers()设置的。
TextField(
controller: emailCtrl,
),
TextField(
controller: passwordCtrl,
),
FirebaseAuth.signInWithEmailAndPassword(emailCtrl.text, passwordCtrl.text);https://stackoverflow.com/questions/71816771
复制相似问题