print only available on desktop

This commit is contained in:
2024-10-02 14:50:18 +02:00
parent f2c3db5877
commit 198bd6b21b

View File

@@ -79,11 +79,17 @@ class _FullScreenFileViewerState extends State<FullScreenFileViewer> {
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<FullScreenFileViewer> {
),
),
Visibility(
visible: isPDF,
visible: isDesktop,
child: IconButton(
iconSize: 30,
padding: const EdgeInsets.all(0),