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