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,55 +110,64 @@ class _PatientDetailsState extends State<PatientDetails> {
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(