Search
 
SCRIPT & CODE EXAMPLE
 

DART

flutter firebase personal user data

// firebase authentication works with firestore database to collect personal data

final CollectionReference _userCollection = FirebaseFirestore.instance.collection('users');
 
FirebaseAuth.instance.createUserWithEmailAndPassword(email: email, password: password).then((value) {
	// set personal user data by user id 
	_userCollection.doc(FirebaseAuth.instance.currentUser!.uid).set({
    	"email": email, 
    	"name": name,
    	"weight": weight,
    	"height": height,
    	"age": age,
    	"gender": gender 
	});
}
Comment

PREVIOUS NEXT
Code Example
Dart :: flutter auto size text 
Dart :: dart array split 
Dart :: flutter download image from url 
Dart :: routes in flutter 
Dart :: flutter extend two classes 
Dart :: flutter define type 
Dart :: int.parse flutter 
Dart :: change name of flutter app 
Dart :: how to get image file size in flutter 
Dart :: flutter phone direct caller 
Dart :: google maps flutter maps style 
Dart :: dart contains method 
Dart :: get avarae image from like flutter 
Dart :: custom radio button flutter 
Dart :: flutter containerborder 
Dart :: dart strip html 
Dart :: Find string index inside a list flutter 
Dart :: change notifier flutter example 
Dart :: dart static method 
Dart :: Android Emulator Setup without Android Studio in Flutter 
Dart :: onpressed flutter calculate 
Dart :: how to create camera icon in flutter dev 
Dart :: dart map list to map 
Dart :: a function body must be provided. try adding a function body. flutter 
Dart :: dart map what is 
Swift :: add shadow to collection view cell swift 
Swift :: swift uitableview cell spacing 
Swift :: swift uicollectionviewcell how to know when off screen 
Swift :: swift uipickerview 
Swift :: ios rounded button 
ADD CONTENT
Topic
Content
Source link
Name
3+8 =