mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-10 05:45:10 +00:00
Merge branch 'krille/fix-download-web' into 'main'
chore: Fix download on web See merge request famedly/fluffychat!861
This commit is contained in:
commit
d8b3ecf4c7
1 changed files with 8 additions and 7 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue