Install FlutterFire CLI | and Add Firebase to a Flutter app

Flutter Maker
Flutter Maker
1.1 هزار بار بازدید - 2 سال پیش - The easiest way to get
The easiest way to get you started is to use the FlutterFire CLI.


00:00 introduce
00:53 install firebase cli and node.js
02:42 install flutterfir cli
03:20 firebase login and allow access
07:28 connect flutter app with new firebase project
12:38 add firebase_core package
14:40 additional information
17:34 important note


Before you continue, make sure to:
_______________________________________
#1
install node.js
https://nodejs.org/en/


Node JS Environment Setup - Node.js installation
https://www.digitalocean.com/communit...


install firebase cli and firebase tools by this command:
$ npm install -g firebase-tools
_______________________________________
#2
Install and run the FlutterFire CLI
From any directory, run this command:


$ dart pub global activate flutterfire_cli


Then, at the root of your Flutter project directory, run this command:


$ flutterfire configure --project=name-of-project


This automatically registers your per-platform apps with Firebase and adds a lib/firebase_options.dart configuration file to your Flutter project.
_______________________________________
#3
Initialize Firebase and add plugins
To initialize Firebase, call Firebase.initializeApp from the firebase_core package with the configuration from your new firebase_options.dart file:


import 'package:firebase_core/firebase_core.dart';
import 'firebase_options.dart';
// ...
await Firebase.initializeApp(
   options: DefaultFirebaseOptions.currentPlatform,
);


Then, add and begin using the Flutter plugins for the Firebase products you'd like to use.
Note: If you're using Analytics or Performance Monitoring, you may need to follow a few additional setup steps.
_______________________________________
Firebase UI Auth New Package in Flutter for All of Methods login page
Firebase UI Auth New Package in Flutt...
_____________________________

TAGS
#flutterfire  CLI How to add Firebase to a Flutter app
Install FlutterFire #CLI and Add #firebase  to a Flutter app
CLI - FlutterFire
#FlutterFire - CLI
Firebase CLI
Flutter Firebase #setup  | FlutterFire CLI Project #configuration
Flutter Firebase Setup - #iOS #Android Web & MacOS
2 سال پیش در تاریخ 1401/08/21 منتشر شده است.
1,198 بـار بازدید شده
... بیشتر