Commit 218f8319 authored by GayaniPKarunaratne's avatar GayaniPKarunaratne

Done some parts in View list

parent 51b6fe4e
...@@ -59,6 +59,19 @@ createData(){ ...@@ -59,6 +59,19 @@ createData(){
} }
readData(){
DocumentReference documentReference = Firestore.instance.collection("RiskLocation").document(userName);
documentReference.get().then((datasnapshot){
print(datasnapshot.data()["userName"]);
print(datasnapshot.data()["phoneNumber"]);
print(datasnapshot.data()["riskLocation"]);
print(datasnapshot.data()["hotelName"]);
print(datasnapshot.data()["date"]);
print(datasnapshot.data()["time"]);
});
}
final GlobalKey<FormState> _formKey = GlobalKey<FormState>(); final GlobalKey<FormState> _formKey = GlobalKey<FormState>();
//---------------------------------------------User Name----------------------------------------------------- //---------------------------------------------User Name-----------------------------------------------------
Widget _buildName(){ Widget _buildName(){
...@@ -220,9 +233,13 @@ Widget _buildTime(){ ...@@ -220,9 +233,13 @@ Widget _buildTime(){
// print(_time); // print(_time);
createData(); createData();
} , } ,
) )
], ],
),), ),),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment