From ce8fa791e93e6cb0e8afa423429a2d6be9780d4f Mon Sep 17 00:00:00 2001 From: Elham Rababah Date: Sun, 3 May 2020 12:48:31 +0300 Subject: [PATCH] return values to daynmic --- lib/screens/patients/patient_search_screen.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/screens/patients/patient_search_screen.dart b/lib/screens/patients/patient_search_screen.dart index 6dcacf22..97987ff0 100644 --- a/lib/screens/patients/patient_search_screen.dart +++ b/lib/screens/patients/patient_search_screen.dart @@ -64,13 +64,13 @@ class _PatientSearchScreenState extends State { if (_formKey.currentState.validate()) { // If all data are correct then save data to out variables // _formKey.currentState.save(); - sharedPref.setString(TOKEN,'@dm!n'); + // sharedPref.setString(TOKEN,'@dm!n'); sharedPref.setString(SLECTED_PATIENT_TYPE,_selectedType); print('_selectedType${_selectedType}'); String token = await sharedPref.getString(TOKEN); int projectID = await sharedPref.getInt(PROJECT_ID); _patientSearchFormValues.TokenID = token; - _patientSearchFormValues.ProjectID = 2;//projectID; + _patientSearchFormValues.ProjectID = projectID; // print(_patientSearchFormValues.PatientMobileNumber+"dfdfdfddf"); Navigator.of(context).pushNamed(PATIENTS, arguments: { "patientSearchForm": _patientSearchFormValues,