If medical aid is no make unnecessary field disappear
This commit is contained in:
parent
4386af8cc9
commit
c84311f5a6
2 changed files with 84 additions and 83 deletions
|
|
@ -241,7 +241,10 @@ class _AddPatientState extends State<AddPatient> {
|
||||||
required: true,
|
required: true,
|
||||||
dropdownOptions: const ["Yes", "No"],
|
dropdownOptions: const ["Yes", "No"],
|
||||||
),
|
),
|
||||||
|
Visibility(
|
||||||
|
visible: medRequired,
|
||||||
|
child: Column(
|
||||||
|
children: [
|
||||||
const SizedBox(height: 10.0),
|
const SizedBox(height: 10.0),
|
||||||
MyDropdownField(
|
MyDropdownField(
|
||||||
controller: medMainMemController,
|
controller: medMainMemController,
|
||||||
|
|
@ -250,7 +253,6 @@ class _AddPatientState extends State<AddPatient> {
|
||||||
required: medRequired,
|
required: medRequired,
|
||||||
dropdownOptions: const ["Yes", "No"],
|
dropdownOptions: const ["Yes", "No"],
|
||||||
),
|
),
|
||||||
|
|
||||||
const SizedBox(height: 10.0),
|
const SizedBox(height: 10.0),
|
||||||
MyTextField(
|
MyTextField(
|
||||||
controller: medNoController,
|
controller: medNoController,
|
||||||
|
|
@ -258,33 +260,30 @@ class _AddPatientState extends State<AddPatient> {
|
||||||
editable: medRequired,
|
editable: medRequired,
|
||||||
required: medRequired,
|
required: medRequired,
|
||||||
),
|
),
|
||||||
|
|
||||||
const SizedBox(height: 10.0),
|
const SizedBox(height: 10.0),
|
||||||
|
|
||||||
MyTextField(
|
MyTextField(
|
||||||
controller: medAidCodeController,
|
controller: medAidCodeController,
|
||||||
hintText: "Medical Aid Code",
|
hintText: "Medical Aid Code",
|
||||||
editable: medRequired,
|
editable: medRequired,
|
||||||
required: medRequired,
|
required: medRequired,
|
||||||
),
|
),
|
||||||
|
|
||||||
const SizedBox(height: 10.0),
|
const SizedBox(height: 10.0),
|
||||||
|
|
||||||
MyTextField(
|
MyTextField(
|
||||||
controller: medNameController,
|
controller: medNameController,
|
||||||
hintText: "Medical Aid Name",
|
hintText: "Medical Aid Name",
|
||||||
editable: medRequired,
|
editable: medRequired,
|
||||||
required: medRequired,
|
required: medRequired,
|
||||||
),
|
),
|
||||||
|
|
||||||
const SizedBox(height: 10.0),
|
const SizedBox(height: 10.0),
|
||||||
|
|
||||||
MyTextField(
|
MyTextField(
|
||||||
controller: medSchemeController,
|
controller: medSchemeController,
|
||||||
hintText: "Medical Aid Scheme",
|
hintText: "Medical Aid Scheme",
|
||||||
editable: medRequired,
|
editable: medRequired,
|
||||||
required: medRequired,
|
required: medRequired,
|
||||||
),
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
|
||||||
//const SizedBox(height: 10.0),
|
//const SizedBox(height: 10.0),
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -457,7 +457,10 @@ class _EditPatientState extends State<EditPatient> {
|
||||||
required: true,
|
required: true,
|
||||||
dropdownOptions: const ["Yes", "No"],
|
dropdownOptions: const ["Yes", "No"],
|
||||||
),
|
),
|
||||||
|
Visibility(
|
||||||
|
visible: medRequired,
|
||||||
|
child: Column(
|
||||||
|
children: [
|
||||||
const SizedBox(height: 10.0),
|
const SizedBox(height: 10.0),
|
||||||
MyDropdownField(
|
MyDropdownField(
|
||||||
controller: medMainMemController,
|
controller: medMainMemController,
|
||||||
|
|
@ -466,7 +469,6 @@ class _EditPatientState extends State<EditPatient> {
|
||||||
required: medRequired,
|
required: medRequired,
|
||||||
dropdownOptions: const ["Yes", "No"],
|
dropdownOptions: const ["Yes", "No"],
|
||||||
),
|
),
|
||||||
|
|
||||||
const SizedBox(height: 10.0),
|
const SizedBox(height: 10.0),
|
||||||
MyTextField(
|
MyTextField(
|
||||||
controller: medNoController,
|
controller: medNoController,
|
||||||
|
|
@ -474,7 +476,6 @@ class _EditPatientState extends State<EditPatient> {
|
||||||
editable: medRequired,
|
editable: medRequired,
|
||||||
required: medRequired,
|
required: medRequired,
|
||||||
),
|
),
|
||||||
|
|
||||||
const SizedBox(height: 10.0),
|
const SizedBox(height: 10.0),
|
||||||
MyTextField(
|
MyTextField(
|
||||||
controller: medAidCodeController,
|
controller: medAidCodeController,
|
||||||
|
|
@ -482,7 +483,6 @@ class _EditPatientState extends State<EditPatient> {
|
||||||
editable: medRequired,
|
editable: medRequired,
|
||||||
required: medRequired,
|
required: medRequired,
|
||||||
),
|
),
|
||||||
|
|
||||||
const SizedBox(height: 10.0),
|
const SizedBox(height: 10.0),
|
||||||
MyTextField(
|
MyTextField(
|
||||||
controller: medNameController,
|
controller: medNameController,
|
||||||
|
|
@ -490,7 +490,6 @@ class _EditPatientState extends State<EditPatient> {
|
||||||
editable: medRequired,
|
editable: medRequired,
|
||||||
required: medRequired,
|
required: medRequired,
|
||||||
),
|
),
|
||||||
|
|
||||||
const SizedBox(height: 10.0),
|
const SizedBox(height: 10.0),
|
||||||
MyTextField(
|
MyTextField(
|
||||||
controller: medSchemeController,
|
controller: medSchemeController,
|
||||||
|
|
@ -498,6 +497,9 @@ class _EditPatientState extends State<EditPatient> {
|
||||||
editable: medRequired,
|
editable: medRequired,
|
||||||
required: medRequired,
|
required: medRequired,
|
||||||
),
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
|
||||||
//const SizedBox(height: 10.0),
|
//const SizedBox(height: 10.0),
|
||||||
SizedBox(
|
SizedBox(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue