From 7004b136d2751766dafd64ced41d6782d2d16eaf Mon Sep 17 00:00:00 2001 From: yaso Date: Mon, 7 Oct 2024 10:45:24 +0200 Subject: [PATCH] fix expanded image view --- .../patient_profile/full_screen_file.dart | 28 ++----------------- 1 file changed, 2 insertions(+), 26 deletions(-) diff --git a/Frontend/patient_manager/lib/mih_packages/patient_profile/full_screen_file.dart b/Frontend/patient_manager/lib/mih_packages/patient_profile/full_screen_file.dart index d8c9f4b2..1fb2bf25 100644 --- a/Frontend/patient_manager/lib/mih_packages/patient_profile/full_screen_file.dart +++ b/Frontend/patient_manager/lib/mih_packages/patient_profile/full_screen_file.dart @@ -253,7 +253,7 @@ class _FullScreenFileViewerState extends State { } else { fileViewer = SizedBox( width: width, - height: height, + height: height - 70, child: InteractiveViewer( maxScale: 5.0, //minScale: 0., @@ -264,31 +264,7 @@ class _FullScreenFileViewerState extends State { return MIHBody( borderOn: false, bodyItems: [ - Stack( - children: [ - fileViewer, - Positioned( - bottom: 5, - right: 5, - width: 50, - height: 50, - child: IconButton.filled( - iconSize: 35, - padding: const EdgeInsets.all(0), - onPressed: () { - html.window.open( - widget.arguments.link, - // '${AppEnviroment.baseFileUrl}/mih/$filePath', - 'download'); - }, - icon: Icon( - Icons.download, - color: MzanziInnovationHub.of(context)!.theme.primaryColor(), - ), - ), - ), - ], - ), + fileViewer, ], ); }