diff --git a/lib/screens/prescription/add_prescription_form.dart b/lib/screens/prescription/add_prescription_form.dart index fd7c09cf..91536aeb 100644 --- a/lib/screens/prescription/add_prescription_form.dart +++ b/lib/screens/prescription/add_prescription_form.dart @@ -385,7 +385,8 @@ class _PrescriptionFormWidgetState extends State { true; visbiltySearch = false; _selectedMedication = - model.allMedicationList[index]; + model.allMedicationList[ + index]; uom = _selectedMedication .uom; }, @@ -405,8 +406,11 @@ class _PrescriptionFormWidgetState extends State { child: Container( child: Column( children: [ - - AppText(_selectedMedication?.description??"",bold: true,), + AppText( + _selectedMedication?.description ?? + "", + bold: true, + ), Container( child: Row( children: [ @@ -431,12 +435,23 @@ class _PrescriptionFormWidgetState extends State { SizedBox( height: spaceBetweenTextFileds), Container( - height: screenSize.height * 0.070, + //height: screenSize.height * 0.062, + height: MediaQuery.of(context) + .size + .height * + 0.06, width: double.infinity, child: Row( children: [ Container( - width: MediaQuery.of(context).size.width * 0.35, + height: MediaQuery.of(context) + .size + .height * + 0.06, + width: MediaQuery.of(context) + .size + .width * + 0.35, child: TextFields( inputFormatters: [ LengthLimitingTextInputFormatter( @@ -445,7 +460,12 @@ class _PrescriptionFormWidgetState extends State { // .digitsOnly ], hintText: - TranslationBase.of(context).strength, + TranslationBase.of( + context) + .strength, + fontWeight: FontWeight.w500, + fontSize: 14.0, + borderWidth: 0.2, controller: strengthController, keyboardType: TextInputType @@ -505,11 +525,15 @@ class _PrescriptionFormWidgetState extends State { width: 10.0, ), Container( + height: MediaQuery.of(context) + .size + .height * + 0.06, color: Colors.white, width: MediaQuery.of(context) .size .width * - 0.450, + 0.560, child: InkWell( onTap: model.itemMedicineListUnit != @@ -556,11 +580,20 @@ class _PrescriptionFormWidgetState extends State { : null, child: TextField( decoration: - textFieldSelectorDecoration('Select', - - model.itemMedicineListUnit.length == 1 - ? units = model.itemMedicineListUnit[0]['description'] - : units != null ? units['description'].toString() : null, + textFieldSelectorDecoration( + 'Select', + model.itemMedicineListUnit + .length == + 1 + ? units = model + .itemMedicineListUnit[0] + [ + 'description'] + : units != + null + ? units['description'] + .toString() + : null, true), enabled: false), ),