fixing and enhancments

merge-requests/136/merge
ibrahim albitar 5 years ago
parent 339c8dfb00
commit c07f84ff78

@ -60,6 +60,10 @@ class _MedicineSearchState extends State<MedicineSearchScreen> {
hintText: TranslationBase.of(context).searchMedicineNameHere,
controller: myController,
onSaved: (value) {},
onFieldSubmitted: (value){
searchMedicine(context);
},
textInputAction: TextInputAction.search,
inputFormatter: ONLY_LETTERS),
),
Container(

@ -61,7 +61,9 @@ class _InsuranceApprovalsState extends State<InsuranceApprovalsScreen> {
patientTypeID: patient.patientType,
languageID: 2);
patientsProv
.getPatientInsuranceApprovals(insuranceApprovalsRequest.toJson());
.getPatientInsuranceApprovals(insuranceApprovalsRequest.toJson()).then((c){
approvalsList = patientsProv.insuranceApporvalsList;
});
}
@override
@ -97,6 +99,7 @@ class _InsuranceApprovalsState extends State<InsuranceApprovalsScreen> {
onChanged: (String str) {
this.searchData(str);
},
textInputAction: TextInputAction.done,
decoration: buildInputDecoration(
context,
TranslationBase.of(context)

@ -59,7 +59,9 @@ class _PatientsOrdersState extends State<PatientsOrdersScreen> {
tokenID: token,
patientTypeID: patient.patientType,
languageID: 2);
patientsProv.getPatientProgressNote(progressNoteRequest.toJson());
patientsProv.getPatientProgressNote(progressNoteRequest.toJson()).then((c){
notesList = patientsProv.patientProgressNoteList;
});
}
@override
@ -94,6 +96,7 @@ class _PatientsOrdersState extends State<PatientsOrdersScreen> {
onChanged: (String str) {
this.searchData(str);
},
textInputAction: TextInputAction.done,
decoration: buildInputDecoration(context,
TranslationBase.of(context).searchOrders),
),

@ -59,7 +59,9 @@ class _ProgressNoteState extends State<ProgressNoteScreen> {
tokenID: token,
patientTypeID: patient.patientType,
languageID: 2);
patientsProv.getPatientProgressNote(progressNoteRequest.toJson());
patientsProv.getPatientProgressNote(progressNoteRequest.toJson()).then((c){
notesList = patientsProv.patientProgressNoteList;
});
}
@override
@ -94,6 +96,7 @@ class _ProgressNoteState extends State<ProgressNoteScreen> {
onChanged: (String str) {
this.searchData(str);
},
textInputAction: TextInputAction.done,
decoration: buildInputDecoration(context,
TranslationBase.of(context).searchNote),
),

@ -19,7 +19,9 @@ class AppTextFormField extends FormField<String> {
bool autovalidate = true,
TextInputType textInputType,
String hintText,
FocusNode focusNode
FocusNode focusNode,
TextInputAction textInputAction,
ValueChanged<String> onFieldSubmitted,
}) : super(
onSaved: onSaved,
validator: validator,
@ -34,6 +36,8 @@ class AppTextFormField extends FormField<String> {
onChanged: onChanged?? (value){
state.didChange(value);
},
textInputAction: textInputAction,
onFieldSubmitted: onFieldSubmitted,
decoration: InputDecoration(
hintText: hintText,
hintStyle: TextStyle(fontSize: SizeConfig.textMultiplier * 2),

Loading…
Cancel
Save