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, color: Colors.white,
tooltip: L10n.of(context)!.share, tooltip: L10n.of(context)!.share,
), ),
if (!PlatformInfos.isIOS) IconButton(
IconButton( icon: const Icon(Icons.download_outlined),
icon: const Icon(Icons.download_outlined), onPressed: () => controller.saveFileAction(context),
onPressed: () => controller.saveFileAction(context), color: Colors.white,
color: Colors.white, tooltip: L10n.of(context)!.downloadFile,
tooltip: L10n.of(context)!.downloadFile, ),
),
if (PlatformInfos.isMobile) if (PlatformInfos.isMobile)
// Use builder context to correctly position the share dialog on iPad // Use builder context to correctly position the share dialog on iPad
Builder( Builder(