小编geo*_*ian的帖子

flutter 忽略标头 X-Firebase-Locale 因为它的值为 null

我将我的应用程序与 firebase 链接,但是当我尝试在应用程序中使用新用户注册时,我收到此错误:忽略标头 X-Firebase-Locale 因为其值为 null。这是身份验证屏幕代码:

class Authscreen extends StatefulWidget {
  @override
  Authscreenstate createState() => Authscreenstate();
}

final auth = FirebaseAuth.instance;

class Authscreenstate extends State<Authscreen> {
  void submitauthform(String email, String password, String username,
      bool islogin, BuildContext ctx) async {
    UserCredential authres;
    try {
      if (islogin == true) {
        authres = await auth.signInWithEmailAndPassword(
            email: email, password: password);
      } else {
        authres = await auth.createUserWithEmailAndPassword(
            email: email, password: password);
      }
    } on FirebaseAuthException catch (e) {
      String message = "error";
      if (e.code …
Run Code Online (Sandbox Code Playgroud)

dart firebase-authentication flutter

8
推荐指数
1
解决办法
8876
查看次数

标签 统计

dart ×1

firebase-authentication ×1

flutter ×1