From 34b7962e15e854b6bb5df15d30cd10956b0614e7 Mon Sep 17 00:00:00 2001 From: yaso Date: Tue, 12 Nov 2024 12:57:24 +0200 Subject: [PATCH] fix loading cirtcle to middle of screen --- .../appointment/appointments.dart | 46 +------------------ 1 file changed, 2 insertions(+), 44 deletions(-) diff --git a/Frontend/patient_manager/lib/mih_packages/appointment/appointments.dart b/Frontend/patient_manager/lib/mih_packages/appointment/appointments.dart index a5888979..7e0d04f2 100644 --- a/Frontend/patient_manager/lib/mih_packages/appointment/appointments.dart +++ b/Frontend/patient_manager/lib/mih_packages/appointment/appointments.dart @@ -312,7 +312,8 @@ class _PatientAccessRequestState extends State { builder: (context, snapshot) { //return displayQueueList(snapshot.requireData); if (snapshot.connectionState == ConnectionState.waiting) { - return const Mihloadingcircle(); + return const Expanded( + child: Center(child: Mihloadingcircle())); } else if (snapshot.connectionState == ConnectionState.done && snapshot.hasData) { return displayQueueList(snapshot.requireData); @@ -374,48 +375,5 @@ class _PatientAccessRequestState extends State { pullDownToRefresh: false, onPullDown: () async {}, ); - // return Scaffold( - // // appBar: const MIHAppBar( - // // barTitle: "Access Reviews", - // // propicFile: null, - // // ), - // //drawer: MIHAppDrawer(signedInUser: widget.signedInUser), - // body: SafeArea( - // child: Stack( - // children: [ - // viewAccessRequest(screenWidth, screenHeight), - // Positioned( - // top: 10, - // left: 5, - // width: 50, - // height: 50, - // child: IconButton( - // onPressed: () { - // Navigator.of(context).pop(); - // }, - // icon: const Icon(Icons.arrow_back), - // ), - // ), - // Positioned( - // top: 10, - // right: 5, - // width: 50, - // height: 50, - // child: IconButton( - // onPressed: () { - // setState(() { - // forceRefresh = true; - // }); - // refreshList(); - // }, - // icon: const Icon( - // Icons.refresh, - // ), - // ), - // ) - // ], - // ), - // ), - // ); } }