merge-requests/136/merge
ibrahim albitar 6 years ago
commit 95a3aaaf37

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

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

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

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

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

Loading…
Cancel
Save