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) {
|
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),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue