chore: Fix download on web

This commit is contained in:
Christian Pauly 2022-05-06 08:27:38 +02:00
parent f3ca6a74da
commit a2913b1c8c

View File

@ -32,19 +32,20 @@ class ImageViewerView extends StatelessWidget {
color: Colors.white,
tooltip: L10n.of(context)!.share,
),
if (PlatformInfos.isAndroid)
if (!PlatformInfos.isIOS)
IconButton(
icon: const Icon(Icons.download_outlined),
onPressed: controller.saveFileAction,
color: Colors.white,
tooltip: L10n.of(context)!.downloadFile,
),
IconButton(
onPressed: controller.shareFileAction,
tooltip: L10n.of(context)!.share,
color: Colors.white,
icon: const Icon(Icons.share),
)
if (PlatformInfos.isMobile)
IconButton(
onPressed: controller.shareFileAction,
tooltip: L10n.of(context)!.share,
color: Colors.white,
icon: const Icon(Icons.share),
)
],
),
body: InteractiveViewer(