feat: Enable download images on iOS, not only share images

This commit is contained in:
krille-chan 2024-05-04 09:42:46 +02:00
parent f71e3ad8e8
commit b280f8d8d9
No known key found for this signature in database

View file

@ -32,13 +32,12 @@ class ImageViewerView extends StatelessWidget {
color: Colors.white,
tooltip: L10n.of(context)!.share,
),
if (!PlatformInfos.isIOS)
IconButton(
icon: const Icon(Icons.download_outlined),
onPressed: () => controller.saveFileAction(context),
color: Colors.white,
tooltip: L10n.of(context)!.downloadFile,
),
IconButton(
icon: const Icon(Icons.download_outlined),
onPressed: () => controller.saveFileAction(context),
color: Colors.white,
tooltip: L10n.of(context)!.downloadFile,
),
if (PlatformInfos.isMobile)
// Use builder context to correctly position the share dialog on iPad
Builder(