mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-17 09:35:12 +00:00
feat: Enable download images on iOS, not only share images
This commit is contained in:
parent
f71e3ad8e8
commit
b280f8d8d9
1 changed files with 6 additions and 7 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue