我将我的应用程序与 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)