From 50753bc6bb58bfe535a37b0af90aef9ab683578a Mon Sep 17 00:00:00 2001 From: yaso Date: Fri, 8 Nov 2024 10:49:52 +0200 Subject: [PATCH] fix swipe on patient details --- .../patient_profile/patient_details.dart | 52 ++++++++----------- 1 file changed, 23 insertions(+), 29 deletions(-) diff --git a/Frontend/patient_manager/lib/mih_packages/patient_profile/patient_details.dart b/Frontend/patient_manager/lib/mih_packages/patient_profile/patient_details.dart index 64cad9e8..b9d18eca 100644 --- a/Frontend/patient_manager/lib/mih_packages/patient_profile/patient_details.dart +++ b/Frontend/patient_manager/lib/mih_packages/patient_profile/patient_details.dart @@ -269,36 +269,30 @@ class _PatientDetailsState extends State { @override Widget build(BuildContext context) { - return SelectionArea( - child: SingleChildScrollView( - child: Column( - children: [ - Row( - mainAxisAlignment: MainAxisAlignment.center, - //crossAxisAlignment: , - children: setIcons(), - ), - Divider( - color: MzanziInnovationHub.of(context)!.theme.secondaryColor()), - const SizedBox(height: 10), - getPatientDetailsField(), - const SizedBox(height: 10), - Text( - "Medical Aid Details", - textAlign: TextAlign.center, - style: TextStyle( - fontSize: 25, - fontWeight: FontWeight.bold, - color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), - ), - ), - Divider( - color: MzanziInnovationHub.of(context)!.theme.secondaryColor()), - const SizedBox(height: 10), - getMedAidDetailsFields(), - ], + return Column( + children: [ + Row( + mainAxisAlignment: MainAxisAlignment.center, + //crossAxisAlignment: , + children: setIcons(), ), - ), + Divider(color: MzanziInnovationHub.of(context)!.theme.secondaryColor()), + const SizedBox(height: 10), + getPatientDetailsField(), + const SizedBox(height: 10), + Text( + "Medical Aid Details", + textAlign: TextAlign.center, + style: TextStyle( + fontSize: 25, + fontWeight: FontWeight.bold, + color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), + ), + ), + Divider(color: MzanziInnovationHub.of(context)!.theme.secondaryColor()), + const SizedBox(height: 10), + getMedAidDetailsFields(), + ], ); } }