Merge branch 'referral_in_patient' into 'development'

Referral in patient

See merge request Cloud_Solution/doctor_app_flutter!645
merge-requests/646/merge
Mohammad Aljammal 5 years ago
commit 20c96cd370

@ -385,8 +385,7 @@ class _PrescriptionFormWidgetState extends State<PrescriptionFormWidget> {
true; true;
visbiltySearch = false; visbiltySearch = false;
_selectedMedication = _selectedMedication =
model.allMedicationList[ model.allMedicationList[index];
index];
uom = _selectedMedication uom = _selectedMedication
.uom; .uom;
}, },
@ -406,6 +405,8 @@ class _PrescriptionFormWidgetState extends State<PrescriptionFormWidget> {
child: Container( child: Container(
child: Column( child: Column(
children: [ children: [
AppText(_selectedMedication?.description??"",bold: true,),
Container( Container(
child: Row( child: Row(
children: [ children: [
@ -435,10 +436,7 @@ class _PrescriptionFormWidgetState extends State<PrescriptionFormWidget> {
child: Row( child: Row(
children: [ children: [
Container( Container(
width: MediaQuery.of(context) width: MediaQuery.of(context).size.width * 0.35,
.size
.width *
0.450,
child: TextFields( child: TextFields(
inputFormatters: [ inputFormatters: [
LengthLimitingTextInputFormatter( LengthLimitingTextInputFormatter(
@ -447,9 +445,7 @@ class _PrescriptionFormWidgetState extends State<PrescriptionFormWidget> {
// .digitsOnly // .digitsOnly
], ],
hintText: hintText:
TranslationBase.of( TranslationBase.of(context).strength,
context)
.strength,
controller: controller:
strengthController, strengthController,
keyboardType: TextInputType keyboardType: TextInputType
@ -560,20 +556,11 @@ class _PrescriptionFormWidgetState extends State<PrescriptionFormWidget> {
: null, : null,
child: TextField( child: TextField(
decoration: decoration:
textFieldSelectorDecoration( textFieldSelectorDecoration('Select',
'Select',
model.itemMedicineListUnit model.itemMedicineListUnit.length == 1
.length == ? units = model.itemMedicineListUnit[0]['description']
1 : units != null ? units['description'].toString() : null,
? units = model
.itemMedicineListUnit[0]
[
'description']
: units !=
null
? units[
'description']
: null,
true), true),
enabled: false), enabled: false),
), ),

Loading…
Cancel
Save