merge-requests/570/head
Sultan Khan 5 years ago
parent 3e9c93e0cd
commit 648f6fd7cb

@ -589,24 +589,23 @@ class _PatientsScreenState extends State<PatientsScreen> {
SizedBox(
height: 10.0,
),
if (int.parse(patientType) == 7)
Container(
padding: EdgeInsets.all(5),
decoration: BoxDecoration(
color: Colors.white,
border: Border.all(
color: Colors.grey),
borderRadius:
BorderRadius.circular(
10)),
child: ClinicList(
clinicId: clinicId,
onClinicChange: (newValue) {
clinicId = newValue;
changeClinic(
newValue, context, model);
},
)),
// if (int.parse(patientType) == 7)
// Container(
// padding: EdgeInsets.all(5),
// decoration: BoxDecoration(
// color: Colors.white,
// border: Border.all(
// color: Colors.grey),
// borderRadius:
// BorderRadius.circular(10)),
// child: ClinicList(
// clinicId: clinicId,
// onClinicChange: (newValue) {
// clinicId = newValue;
// changeClinic(
// newValue, context, model);
// },
// )),
Padding(
padding: EdgeInsets.only(
top: MediaQuery.of(context)
@ -616,7 +615,7 @@ class _PatientsScreenState extends State<PatientsScreen> {
// child: _locationBar(context)
child: SERVICES_PATIANT2[
int.parse(patientType)] ==
"patientArrivalList"
"List_MyOutPatient"
? _locationBar(context, model)
: Container(),
),
@ -657,7 +656,8 @@ class _PatientsScreenState extends State<PatientsScreen> {
isInpatient,
"arrivalType":
arrivalType,
"isInpatient":isInpatient
"isInpatient":
isInpatient
});
},
);
@ -903,13 +903,17 @@ class _PatientsScreenState extends State<PatientsScreen> {
GifLoaderDialogUtils.showMyDialog(context);
int val2 = int.parse(patientType);
GetPatientArrivalListRequestModel getPatientArrivalListRequestModel;
if (val2 == 7) {
getPatientArrivalListRequestModel = GetPatientArrivalListRequestModel(
from: _patientSearchFormValues.From,
to: _patientSearchFormValues.To,
pageIndex: 0,
pageSize: 0,
patientMRN: patient.getPatientID);
if (val2 == 0) {
patient = PatientModel(
From: _patientSearchFormValues.From,
To: _patientSearchFormValues.To,
FirstName: "0",
MiddleName: "0",
LastName: "0",
PatientMobileNumber: "0",
PatientIdentificationID: "0",
PatientID: 0,
);
}
model

@ -61,6 +61,13 @@ class _UpdateNoteOrderState extends State<UpdateNoteOrder> {
@override
void initState() {
requestPermissions();
event.controller.stream.listen((p) {
if (p['startPopUp'] == 'true') {
if (this.mounted) {
onVoiceText();
}
}
});
super.initState();
}
@ -226,7 +233,11 @@ class _UpdateNoteOrderState extends State<UpdateNoteOrder> {
}
}
void errorListener(SpeechRecognitionError error) {}
void errorListener(SpeechRecognitionError error) {
event.setValue({"searchText": 'null'});
//SpeechToText.closeAlertDialog(context);
print(error);
}
void statusListener(String status) {
reconizedWord = status == 'listening' ? 'Lisening...' : 'Sorry....';
@ -247,6 +258,8 @@ class _UpdateNoteOrderState extends State<UpdateNoteOrder> {
SpeechToText.closeAlertDialog(context);
progressNoteController.text = reconizedWord;
});
} else {
print(result.finalResult);
}
}
}

@ -75,6 +75,10 @@ class _MyStatefulBuilderState extends State<MyStatefulBuilder> {
setState(() {
searchText = p['searchText'];
});
} else if (p['searchText'] == 'null') {
setState(() {
searchText = p['searchText'];
});
}
});
super.initState();

Loading…
Cancel
Save