button alignment
This commit is contained in:
@@ -280,7 +280,7 @@ class _BuildPatientsListState extends State<BuildMihPatientSearchList> {
|
|||||||
visible: !hasAccess,
|
visible: !hasAccess,
|
||||||
child: Column(
|
child: Column(
|
||||||
mainAxisSize: MainAxisSize.max,
|
mainAxisSize: MainAxisSize.max,
|
||||||
mainAxisAlignment: MainAxisAlignment.start,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
"Important Notice: Requesting Patient Profile Access",
|
"Important Notice: Requesting Patient Profile Access",
|
||||||
@@ -343,9 +343,16 @@ class _BuildPatientsListState extends State<BuildMihPatientSearchList> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
// const SizedBox(height: 15.0),
|
// const SizedBox(height: 15.0),
|
||||||
Wrap(runSpacing: 10, spacing: 10, children: [
|
Center(
|
||||||
|
child: Wrap(
|
||||||
|
alignment: WrapAlignment.center,
|
||||||
|
crossAxisAlignment: WrapCrossAlignment.center,
|
||||||
|
runSpacing: 10,
|
||||||
|
spacing: 10,
|
||||||
|
children: [
|
||||||
Visibility(
|
Visibility(
|
||||||
visible: hasAccess,
|
visible: hasAccess,
|
||||||
|
child: Center(
|
||||||
child: MihButton(
|
child: MihButton(
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
if (hasAccess) {
|
if (hasAccess) {
|
||||||
@@ -362,22 +369,26 @@ class _BuildPatientsListState extends State<BuildMihPatientSearchList> {
|
|||||||
noAccessWarning();
|
noAccessWarning();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
buttonColor:
|
buttonColor: MzanziInnovationHub.of(context)!
|
||||||
MzanziInnovationHub.of(context)!.theme.successColor(),
|
.theme
|
||||||
|
.successColor(),
|
||||||
width: 300,
|
width: 300,
|
||||||
child: Text(
|
child: Text(
|
||||||
"View Profile",
|
"View Profile",
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
color:
|
color: MzanziInnovationHub.of(context)!
|
||||||
MzanziInnovationHub.of(context)!.theme.primaryColor(),
|
.theme
|
||||||
|
.primaryColor(),
|
||||||
fontSize: 20,
|
fontSize: 20,
|
||||||
fontWeight: FontWeight.bold,
|
fontWeight: FontWeight.bold,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
Visibility(
|
Visibility(
|
||||||
visible: !hasAccess && accessStatus == "No Access",
|
visible: !hasAccess && accessStatus == "No Access",
|
||||||
|
child: Center(
|
||||||
child: MihButton(
|
child: MihButton(
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
MIHApiCalls.addPatientAccessAPICall(
|
MIHApiCalls.addPatientAccessAPICall(
|
||||||
@@ -394,22 +405,26 @@ class _BuildPatientsListState extends State<BuildMihPatientSearchList> {
|
|||||||
context,
|
context,
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
buttonColor:
|
buttonColor: MzanziInnovationHub.of(context)!
|
||||||
MzanziInnovationHub.of(context)!.theme.successColor(),
|
.theme
|
||||||
|
.successColor(),
|
||||||
width: 300,
|
width: 300,
|
||||||
child: Text(
|
child: Text(
|
||||||
"Request Access",
|
"Request Access",
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
color:
|
color: MzanziInnovationHub.of(context)!
|
||||||
MzanziInnovationHub.of(context)!.theme.primaryColor(),
|
.theme
|
||||||
|
.primaryColor(),
|
||||||
fontSize: 20,
|
fontSize: 20,
|
||||||
fontWeight: FontWeight.bold,
|
fontWeight: FontWeight.bold,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
Visibility(
|
Visibility(
|
||||||
visible: !hasAccess && accessStatus == "declined",
|
visible: !hasAccess && accessStatus == "declined",
|
||||||
|
child: Center(
|
||||||
child: MihButton(
|
child: MihButton(
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
MIHApiCalls.reapplyPatientAccessAPICall(
|
MIHApiCalls.reapplyPatientAccessAPICall(
|
||||||
@@ -424,20 +439,23 @@ class _BuildPatientsListState extends State<BuildMihPatientSearchList> {
|
|||||||
context,
|
context,
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
buttonColor:
|
buttonColor: MzanziInnovationHub.of(context)!
|
||||||
MzanziInnovationHub.of(context)!.theme.secondaryColor(),
|
.theme
|
||||||
|
.secondaryColor(),
|
||||||
width: 300,
|
width: 300,
|
||||||
child: Text(
|
child: Text(
|
||||||
"Re-apply",
|
"Re-apply",
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
color:
|
color: MzanziInnovationHub.of(context)!
|
||||||
MzanziInnovationHub.of(context)!.theme.primaryColor(),
|
.theme
|
||||||
|
.primaryColor(),
|
||||||
fontSize: 20,
|
fontSize: 20,
|
||||||
fontWeight: FontWeight.bold,
|
fontWeight: FontWeight.bold,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
Visibility(
|
Visibility(
|
||||||
visible: !hasAccess && accessStatus == "pending",
|
visible: !hasAccess && accessStatus == "pending",
|
||||||
child: const SizedBox(
|
child: const SizedBox(
|
||||||
@@ -447,7 +465,9 @@ class _BuildPatientsListState extends State<BuildMihPatientSearchList> {
|
|||||||
"Patient has not approved access to their profile. Once access has been approved you can book and appointment or view their profile."),
|
"Patient has not approved access to their profile. Once access has been approved you can book and appointment or view their profile."),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
])
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -12,7 +12,6 @@ import 'package:mzansi_innovation_hub/mih_objects/patient_access.dart';
|
|||||||
import 'package:mzansi_innovation_hub/mih_objects/patients.dart';
|
import 'package:mzansi_innovation_hub/mih_objects/patients.dart';
|
||||||
import 'package:mzansi_innovation_hub/mih_packages/patient_profile/pat_manager/list_builders/build_mih_patient_search_list.dart';
|
import 'package:mzansi_innovation_hub/mih_packages/patient_profile/pat_manager/list_builders/build_mih_patient_search_list.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter/services.dart';
|
|
||||||
|
|
||||||
class MihPatientSearch extends StatefulWidget {
|
class MihPatientSearch extends StatefulWidget {
|
||||||
final AppUser signedInUser;
|
final AppUser signedInUser;
|
||||||
@@ -188,7 +187,6 @@ class _MihPatientSearchState extends State<MihPatientSearch> {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
void dispose() {
|
void dispose() {
|
||||||
// TODO: implement dispose
|
|
||||||
super.dispose();
|
super.dispose();
|
||||||
_searchFocusNode.dispose();
|
_searchFocusNode.dispose();
|
||||||
_mihPatientSearchController.dispose();
|
_mihPatientSearchController.dispose();
|
||||||
|
|||||||
Reference in New Issue
Block a user