How to Connect Firebase in Flutter, install Firebase CLI for window /Mac
step 1
Git hub File link =>
Fiver id=> https://www.fiverr.com/hmirrani
create project
Step 2
select Flutter logo for start connectivity with firebase Cli
step 3 install node js
After installing node js run the command on CMD command line
npm install -g firebase-tools
After paste the command and run the code it will download all type of required file
Step 4
Go to C/: user => and so on
C:\Users\Hasnain\AppData\Local\Pub\Cache\bin
add into environment variable
come on your project root directory and write “cmd” it will open terminal on this path
when open terminal than paste command over there
Step 5: install firebase core in pubspect.
https://pub.dev/packages/firebase_core
or add $ flutter pub add firebase_core
Come on main.dart file and paste this code
await Firebase.initializeApp(
options: DefaultFirebaseOptions.currentPlatform,
);
Finished finally you can see on firebase dashboard all platform added
For Mac users:
How install for in Mac
write command for check firebase login
after done cli insatll and firebase login go to next and
copy this command
after run this and you get the path and copy this path and again paste and press enter
copy 2nd command and paste in project terminal and run
Done Success fully insalled