print only available on desktop
This commit is contained in:
parent
f2c3db5877
commit
198bd6b21b
1 changed files with 7 additions and 1 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue