“Flutter Firebase” Code-Antworten

Flutter Firebase

1.Go to firebase and create a project.
2.Add package firebase_core , cloud_firestore , firebase_auth
(for firebase firestore database and authentication)
3.Copy Application ID in file android/app/build.gradle
4.In your project page select Android -> paste Application ID -> press Register app
5.Press Download google-services.json -> press Next
6.Bring the downloaded file to android/app
7.In section Project-level build.gradle copy classpath in dependencies, paste in 
android/build.gradle section dependencies 
8.In section App-level build.gradle copy apply plugin: 'com.google.gms.google-services',
paste in android/app/build.gradle -> press Next -> press Continue to console
9.You need to Firebase.initializeApp() before you can access database. 
You can initialize firebase in main void.

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  await Firebase.initializeApp();
  runApp(const MyApp());
}
10.Anjoy writing firebase :)
jaturon

Firebase flattern

$ flutter pub add firebase_auth

$ flutter pub add firebase_core
Good Gentoo

Flutter Firebase

flutter pub add flutterfire_ui
MrNtlu

Ähnliche Antworten wie “Flutter Firebase”

Fragen ähnlich wie “Flutter Firebase”

Weitere verwandte Antworten zu “Flutter Firebase” auf Dart

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen