Skip to content

High performance self-hosted photo and video management solution.

fix(mobile): platform-dependent share icons & label (#17034)

Yarosa285b1898ebf
diff --git a/mobile/lib/widgets/album/album_viewer_appbar.dart b/mobile/lib/widgets/album/album_viewer_appbar.dart
index 451987316b..6226e5181c 100644
--- a/mobile/lib/widgets/album/album_viewer_appbar.dart
+++ b/mobile/lib/widgets/album/album_viewer_appbar.dart
@@ -189,13 +189,13 @@ class AlbumViewerAppbar extends HookConsumerWidget
).tr(),
),
ListTile(
- leading: const Icon(Icons.share_rounded),
+ leading: const Icon(Icons.link_rounded),
onTap: () {
context.pushRoute(SharedLinkEditRoute(albumId: album.remoteId));
context.pop();
},
title: const Text(
- "control_bottom_app_bar_share",
+ "control_bottom_app_bar_share_link",
style: TextStyle(fontWeight: FontWeight.w500),
).tr(),
),
diff --git a/mobile/lib/widgets/asset_grid/control_bottom_app_bar.dart b/mobile/lib/widgets/asset_grid/control_bottom_app_bar.dart
index 794f7627df..f166748fdc 100644
--- a/mobile/lib/widgets/asset_grid/control_bottom_app_bar.dart
+++ b/mobile/lib/widgets/asset_grid/control_bottom_app_bar.dart
@@ -1,3 +1,5 @@
+import 'dart:io';
+
import 'package:easy_localization/easy_localization.dart';
import 'package:flutter/material.dart';
import 'package:flutter_hooks/flutter_hooks.dart';
@@ -125,7 +127,9 @@ class ControlBottomAppBar extends HookConsumerWidget {
return [
if (hasRemote)
ControlBoxButton(
- iconData: Icons.share_rounded,
+ iconData: Platform.isAndroid
+ ? Icons.share_rounded
+ : Icons.ios_share_rounded,
label: "control_bottom_app_bar_share".tr(),
onPressed: enabled ? () => onShare(true) : null,
),