I / flutter(32005):在通道plugins.flutter.io/firebase_auth上未找到方法signInWithCredential的实现

时间:2019-09-17 18:29:36

标签: firebase flutter firebase-authentication

 Future<void> signIn() async {
final formState = _formKey.currentState;
if(formState.validate()){
  formState.save();
  try{
    AuthResult user =await FirebaseAuth.instance.signInWithEmailAndPassword(email: _email, password: 
    _password);
    Navigator.push(context, MaterialPageRoute(builder: (context)=> Home(user: user)));
  }
  catch(e){
   print(e.message);
  }
}

} 我在_LoginPageState类中实现了此功能,该类在RaisedButton中的onPressed中调用。这是我得到的错误-“ I / flutter(32005):在通道plugins.flutter.io/firebase_auth上未找到方法signInWithCredential的实现”。页面打开正常,显示我们输入登录ID并通过的表单,但是当我按singin时出现上述错误。请帮忙。自从很多天以来,我一直陷于这种困境。谢谢

0 个答案:

没有答案