|
|
@ -35,17 +35,19 @@ class ImageViewerView extends StatelessWidget {
|
|
|
|
if (!PlatformInfos.isIOS)
|
|
|
|
if (!PlatformInfos.isIOS)
|
|
|
|
IconButton(
|
|
|
|
IconButton(
|
|
|
|
icon: const Icon(Icons.download_outlined),
|
|
|
|
icon: const Icon(Icons.download_outlined),
|
|
|
|
onPressed: controller.saveFileAction,
|
|
|
|
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)
|
|
|
|
IconButton(
|
|
|
|
// Use builder context to correctly position the share dialog on iPad
|
|
|
|
onPressed: controller.shareFileAction,
|
|
|
|
Builder(
|
|
|
|
tooltip: L10n.of(context)!.share,
|
|
|
|
builder: (context) => IconButton(
|
|
|
|
color: Colors.white,
|
|
|
|
onPressed: () => controller.shareFileAction(context),
|
|
|
|
icon: Icon(Icons.adaptive.share_outlined),
|
|
|
|
tooltip: L10n.of(context)!.share,
|
|
|
|
)
|
|
|
|
color: Colors.white,
|
|
|
|
|
|
|
|
icon: Icon(Icons.adaptive.share_outlined),
|
|
|
|
|
|
|
|
))
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
body: InteractiveViewer(
|
|
|
|
body: InteractiveViewer(
|
|
|
|