|
|
|
|
@ -64,13 +64,13 @@ class _PatientSearchScreenState extends State<PatientSearchScreen> {
|
|
|
|
|
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,
|
|
|
|
|
|