mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-19 04:55:09 +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,
|
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(
|
||||||
|
|
Loading…
Reference in a new issue