Flutter Web App, Firebase.auth not working. Tried to call a non-function, such as null. 'dart.global.firebase.auth'

后端 未结 1 1597
广开言路
广开言路 2021-01-22 21:24

I am trying to implement a simple Flutter Web App, with Firebase Auth.

I am getting the error NoSuchMethodError: tried to call a non-function, such as null: \'dart.

1条回答
  •  萌比男神i
    2021-01-22 21:34

    Turns out I placed this

    
      
      
    
      
      
      
      
      
      
      
    
      
      
    

    In the wrong place.

    It should be inside the tag.

    Side note, I had this twice, so I deleted the one below.

    Finally, thanks to David Iglesias for his answer here: https://github.com/FirebaseExtended/flutterfire/issues/2860#issuecomment-651313186.

    0 讨论(0)
提交回复
热议问题