From 54d6a4134189db3c2737ccede4aa5b5bc05d9557 Mon Sep 17 00:00:00 2001 From: Yasien Mac Mini Date: Tue, 3 Jun 2025 10:46:04 +0200 Subject: [PATCH] full screen doc viewer --- .../list_builders/build_files_list.dart | 73 +++++++------------ 1 file changed, 26 insertions(+), 47 deletions(-) diff --git a/Frontend/lib/mih_packages/patient_profile/pat_profile/list_builders/build_files_list.dart b/Frontend/lib/mih_packages/patient_profile/pat_profile/list_builders/build_files_list.dart index 9d85614d..b0c9ffd8 100644 --- a/Frontend/lib/mih_packages/patient_profile/pat_profile/list_builders/build_files_list.dart +++ b/Frontend/lib/mih_packages/patient_profile/pat_profile/list_builders/build_files_list.dart @@ -248,54 +248,33 @@ class _BuildFilesListState extends State { }, ), ); - menuList.add( - SpeedDialChild( - child: Icon( - Icons.fullscreen, - color: MzanziInnovationHub.of(context)!.theme.primaryColor(), - ), - label: "Full Screen", - labelBackgroundColor: - MzanziInnovationHub.of(context)!.theme.successColor(), - labelStyle: TextStyle( - color: MzanziInnovationHub.of(context)!.theme.primaryColor(), - fontWeight: FontWeight.bold, - ), - backgroundColor: - MzanziInnovationHub.of(context)!.theme.successColor(), - onTap: () { - printDocument(url, filePath); - }, - ), - ); - } else { - menuList.add( - SpeedDialChild( - child: Icon( - Icons.fullscreen, - color: MzanziInnovationHub.of(context)!.theme.primaryColor(), - ), - label: "Full Screen", - labelBackgroundColor: - MzanziInnovationHub.of(context)!.theme.successColor(), - labelStyle: TextStyle( - color: MzanziInnovationHub.of(context)!.theme.primaryColor(), - fontWeight: FontWeight.bold, - ), - backgroundColor: - MzanziInnovationHub.of(context)!.theme.successColor(), - onTap: () { - Navigator.of(context).pushNamed( - '/file-veiwer', - arguments: FileViewArguments( - url, - filePath, - ), - ); - }, - ), - ); } + menuList.add( + SpeedDialChild( + child: Icon( + Icons.fullscreen, + color: MzanziInnovationHub.of(context)!.theme.primaryColor(), + ), + label: "Full Screen", + labelBackgroundColor: + MzanziInnovationHub.of(context)!.theme.successColor(), + labelStyle: TextStyle( + color: MzanziInnovationHub.of(context)!.theme.primaryColor(), + fontWeight: FontWeight.bold, + ), + backgroundColor: MzanziInnovationHub.of(context)!.theme.successColor(), + onTap: () { + Navigator.of(context).pushNamed( + '/file-veiwer', + arguments: FileViewArguments( + url, + filePath, + ), + ); + }, + ), + ); + // } if (hasAccessToDelete) { menuList.add( SpeedDialChild(