If medical aid is no make unnecessary field disappear
This commit is contained in:
@@ -241,7 +241,10 @@ class _AddPatientState extends State<AddPatient> {
|
||||
required: true,
|
||||
dropdownOptions: const ["Yes", "No"],
|
||||
),
|
||||
|
||||
Visibility(
|
||||
visible: medRequired,
|
||||
child: Column(
|
||||
children: [
|
||||
const SizedBox(height: 10.0),
|
||||
MyDropdownField(
|
||||
controller: medMainMemController,
|
||||
@@ -250,7 +253,6 @@ class _AddPatientState extends State<AddPatient> {
|
||||
required: medRequired,
|
||||
dropdownOptions: const ["Yes", "No"],
|
||||
),
|
||||
|
||||
const SizedBox(height: 10.0),
|
||||
MyTextField(
|
||||
controller: medNoController,
|
||||
@@ -258,33 +260,30 @@ class _AddPatientState extends State<AddPatient> {
|
||||
editable: medRequired,
|
||||
required: medRequired,
|
||||
),
|
||||
|
||||
const SizedBox(height: 10.0),
|
||||
|
||||
MyTextField(
|
||||
controller: medAidCodeController,
|
||||
hintText: "Medical Aid Code",
|
||||
editable: medRequired,
|
||||
required: medRequired,
|
||||
),
|
||||
|
||||
const SizedBox(height: 10.0),
|
||||
|
||||
MyTextField(
|
||||
controller: medNameController,
|
||||
hintText: "Medical Aid Name",
|
||||
editable: medRequired,
|
||||
required: medRequired,
|
||||
),
|
||||
|
||||
const SizedBox(height: 10.0),
|
||||
|
||||
MyTextField(
|
||||
controller: medSchemeController,
|
||||
hintText: "Medical Aid Scheme",
|
||||
editable: medRequired,
|
||||
required: medRequired,
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
//const SizedBox(height: 10.0),
|
||||
|
||||
|
||||
@@ -457,7 +457,10 @@ class _EditPatientState extends State<EditPatient> {
|
||||
required: true,
|
||||
dropdownOptions: const ["Yes", "No"],
|
||||
),
|
||||
|
||||
Visibility(
|
||||
visible: medRequired,
|
||||
child: Column(
|
||||
children: [
|
||||
const SizedBox(height: 10.0),
|
||||
MyDropdownField(
|
||||
controller: medMainMemController,
|
||||
@@ -466,7 +469,6 @@ class _EditPatientState extends State<EditPatient> {
|
||||
required: medRequired,
|
||||
dropdownOptions: const ["Yes", "No"],
|
||||
),
|
||||
|
||||
const SizedBox(height: 10.0),
|
||||
MyTextField(
|
||||
controller: medNoController,
|
||||
@@ -474,7 +476,6 @@ class _EditPatientState extends State<EditPatient> {
|
||||
editable: medRequired,
|
||||
required: medRequired,
|
||||
),
|
||||
|
||||
const SizedBox(height: 10.0),
|
||||
MyTextField(
|
||||
controller: medAidCodeController,
|
||||
@@ -482,7 +483,6 @@ class _EditPatientState extends State<EditPatient> {
|
||||
editable: medRequired,
|
||||
required: medRequired,
|
||||
),
|
||||
|
||||
const SizedBox(height: 10.0),
|
||||
MyTextField(
|
||||
controller: medNameController,
|
||||
@@ -490,7 +490,6 @@ class _EditPatientState extends State<EditPatient> {
|
||||
editable: medRequired,
|
||||
required: medRequired,
|
||||
),
|
||||
|
||||
const SizedBox(height: 10.0),
|
||||
MyTextField(
|
||||
controller: medSchemeController,
|
||||
@@ -498,6 +497,9 @@ class _EditPatientState extends State<EditPatient> {
|
||||
editable: medRequired,
|
||||
required: medRequired,
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
//const SizedBox(height: 10.0),
|
||||
SizedBox(
|
||||
|
||||
Reference in New Issue
Block a user