xxxxxxxxxx
Future sendData() async{
final db = Firestore.instance.collection("path_name").add({
"name": "Name",
"age": 25,
"height": "5.4",
});
}
// after that you just have to put this method within one button's onpressed's
// section.