fix wraping of medical aid details

This commit is contained in:
2024-08-12 14:28:54 +02:00
parent d1d091e150
commit b3bf70fb4e

View File

@@ -110,9 +110,7 @@ class _PatientDetailsState extends State<PatientDetails> {
medAidDet.addAll([ medAidDet.addAll([
Visibility( Visibility(
visible: req, visible: req,
child: Column( child: SizedBox(
children: [
SizedBox(
width: textFieldWidth, width: textFieldWidth,
child: MyTextField( child: MyTextField(
controller: medMainMemController, controller: medMainMemController,
@@ -120,8 +118,11 @@ class _PatientDetailsState extends State<PatientDetails> {
editable: false, editable: false,
required: false), required: false),
), ),
const SizedBox(height: 10.0), ),
SizedBox( //const SizedBox(height: 10.0),
Visibility(
visible: req,
child: SizedBox(
width: textFieldWidth, width: textFieldWidth,
child: MyTextField( child: MyTextField(
controller: medNoController, controller: medNoController,
@@ -129,8 +130,11 @@ class _PatientDetailsState extends State<PatientDetails> {
editable: false, editable: false,
required: false), required: false),
), ),
const SizedBox(height: 10.0), ),
SizedBox( //const SizedBox(height: 10.0),
Visibility(
visible: req,
child: SizedBox(
width: textFieldWidth, width: textFieldWidth,
child: MyTextField( child: MyTextField(
controller: medAidCodeController, controller: medAidCodeController,
@@ -138,8 +142,11 @@ class _PatientDetailsState extends State<PatientDetails> {
editable: false, editable: false,
required: false), required: false),
), ),
const SizedBox(height: 10.0), ),
SizedBox( //const SizedBox(height: 10.0),
Visibility(
visible: req,
child: SizedBox(
width: textFieldWidth, width: textFieldWidth,
child: MyTextField( child: MyTextField(
controller: medNameController, controller: medNameController,
@@ -147,8 +154,11 @@ class _PatientDetailsState extends State<PatientDetails> {
editable: false, editable: false,
required: false), required: false),
), ),
const SizedBox(height: 10.0), ),
SizedBox( //const SizedBox(height: 10.0),
Visibility(
visible: req,
child: SizedBox(
width: textFieldWidth, width: textFieldWidth,
child: MyTextField( child: MyTextField(
controller: medSchemeController, controller: medSchemeController,
@@ -156,9 +166,8 @@ class _PatientDetailsState extends State<PatientDetails> {
editable: false, editable: false,
required: false), required: false),
), ),
],
),
), ),
//),
]); ]);
return Wrap( return Wrap(