No Firebase App '[DEFAULT]' has been created - call Firebase.initializeApp() in Flutter and Firebase

后端 未结 9 1409
离开以前
离开以前 2020-11-22 15:32

I am building a flutter App and I have integrated Firebase but I keep getting this error when I click on a button either to register, login or logout. I have seen other peop

9条回答
  •  旧时难觅i
    2020-11-22 15:54

    @peter's answer is Perfect!! but If you still get error in your code and following flutter firebase codelab, note that those tutorials are outdated as of August 2020 and not updated yet. you need to do many other changes like:

    • replace .data with .data()
    • replace updateData with update

    Hope this may help some newbies like me.

提交回复
热议问题