From b3bf70fb4ec4a9fbad062b51524befddd00add7b Mon Sep 17 00:00:00 2001 From: yaso-meth Date: Mon, 12 Aug 2024 14:28:54 +0200 Subject: [PATCH] fix wraping of medical aid details --- .../lib/components/patientDetails.dart | 103 ++++++++++-------- 1 file changed, 56 insertions(+), 47 deletions(-) diff --git a/Frontend/patient_manager/lib/components/patientDetails.dart b/Frontend/patient_manager/lib/components/patientDetails.dart index 71e53f9c..ac67d625 100644 --- a/Frontend/patient_manager/lib/components/patientDetails.dart +++ b/Frontend/patient_manager/lib/components/patientDetails.dart @@ -110,55 +110,64 @@ class _PatientDetailsState extends State { medAidDet.addAll([ Visibility( visible: req, - child: Column( - children: [ - SizedBox( - width: textFieldWidth, - child: MyTextField( - controller: medMainMemController, - hintText: "Main Member", - editable: false, - required: false), - ), - const SizedBox(height: 10.0), - SizedBox( - width: textFieldWidth, - child: MyTextField( - controller: medNoController, - hintText: "No.", - editable: false, - required: false), - ), - const SizedBox(height: 10.0), - SizedBox( - width: textFieldWidth, - child: MyTextField( - controller: medAidCodeController, - hintText: "Code", - editable: false, - required: false), - ), - const SizedBox(height: 10.0), - SizedBox( - width: textFieldWidth, - child: MyTextField( - controller: medNameController, - hintText: "Name", - editable: false, - required: false), - ), - const SizedBox(height: 10.0), - SizedBox( - width: textFieldWidth, - child: MyTextField( - controller: medSchemeController, - hintText: "Scheme", - editable: false, - required: false), - ), - ], + child: SizedBox( + width: textFieldWidth, + child: MyTextField( + controller: medMainMemController, + hintText: "Main Member", + editable: false, + required: false), ), ), + //const SizedBox(height: 10.0), + Visibility( + visible: req, + child: SizedBox( + width: textFieldWidth, + child: MyTextField( + controller: medNoController, + hintText: "No.", + editable: false, + required: false), + ), + ), + //const SizedBox(height: 10.0), + Visibility( + visible: req, + child: SizedBox( + width: textFieldWidth, + child: MyTextField( + controller: medAidCodeController, + hintText: "Code", + editable: false, + required: false), + ), + ), + //const SizedBox(height: 10.0), + Visibility( + visible: req, + child: SizedBox( + width: textFieldWidth, + child: MyTextField( + controller: medNameController, + hintText: "Name", + editable: false, + required: false), + ), + ), + //const SizedBox(height: 10.0), + Visibility( + visible: req, + child: SizedBox( + width: textFieldWidth, + child: MyTextField( + controller: medSchemeController, + hintText: "Scheme", + editable: false, + required: false), + ), + ), + //), ]); return Wrap(