In this video, I have updated the old source code for phone authentication using flutter and firebase and made it compatible with null safety and the latest flutter version 3.
Step 1- create your flutter project
Step 2- Add your app to firebase
Step 3 - generate SHA-1
MAC User ( in terminal)- keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android
Windows User ( in cmd)- keytool -list -v -keystore “\.android\debug.keystore” -alias androiddebugkey -storepass android -keypass android
Step 4- Add firebase google json file in app directory .
Source code Links :
Github-
https://github.com/Adityapalmzn12/fultter_phone_auth_login