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 248ec77c..ae99f595 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 @@ -79,11 +79,17 @@ class _FullScreenFileViewerState extends State { MIHHeader getHeader(double width) { bool isPDF; + bool isDesktop; if (getExtType(widget.arguments.path).toLowerCase() == "pdf") { isPDF = true; } else { isPDF = false; } + if (MzanziInnovationHub.of(context)!.theme.screenType == "desktop") { + isDesktop = true; + } else { + isDesktop = false; + } return MIHHeader( headerAlignment: MainAxisAlignment.end, headerItems: [ @@ -183,7 +189,7 @@ class _FullScreenFileViewerState extends State { ), ), Visibility( - visible: isPDF, + visible: isDesktop, child: IconButton( iconSize: 30, padding: const EdgeInsets.all(0),