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