xxxxxxxxxx
FirebaseDatabase database = FirebaseDatabase.instance;
DatabaseReference ref = FirebaseDatabase.instance.ref("users/123");
DatabaseReference starCountRef = FirebaseDatabase.instance.ref('test');
starCountRef.onValue.listen((DatabaseEvent event) {
final datasnap = event.snapshot.value as Map<String, dynamic>;
print(datasnap['double']);
});
xxxxxxxxxx
Open the pubspec.
Add your Flutter application to Firebase by clicking on the Android icon.
Add your application's package name as shown in the image below.
You can find your package name in the app-level – build.
Download the google-services.
Paste classpath 'com.
xxxxxxxxxx
Open the pubspec.
Add your Flutter application to Firebase by clicking on the Android icon.
Add your application's package name as shown in the image below.
You can find your package name in the app-level – build.
Download the google-services.
Paste classpath 'com.