mirror of
https://github.com/immich-app/immich.git
synced 2025-05-24 01:12:58 -04:00
fix(mobile): platform-dependent share icons & label (#17034)
fix: platform-dependant icons
This commit is contained in:
parent
6a8e38042d
commit
a285b1898e
@ -189,13 +189,13 @@ class AlbumViewerAppbar extends HookConsumerWidget
|
|||||||
).tr(),
|
).tr(),
|
||||||
),
|
),
|
||||||
ListTile(
|
ListTile(
|
||||||
leading: const Icon(Icons.share_rounded),
|
leading: const Icon(Icons.link_rounded),
|
||||||
onTap: () {
|
onTap: () {
|
||||||
context.pushRoute(SharedLinkEditRoute(albumId: album.remoteId));
|
context.pushRoute(SharedLinkEditRoute(albumId: album.remoteId));
|
||||||
context.pop();
|
context.pop();
|
||||||
},
|
},
|
||||||
title: const Text(
|
title: const Text(
|
||||||
"control_bottom_app_bar_share",
|
"control_bottom_app_bar_share_link",
|
||||||
style: TextStyle(fontWeight: FontWeight.w500),
|
style: TextStyle(fontWeight: FontWeight.w500),
|
||||||
).tr(),
|
).tr(),
|
||||||
),
|
),
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
import 'dart:io';
|
||||||
|
|
||||||
import 'package:easy_localization/easy_localization.dart';
|
import 'package:easy_localization/easy_localization.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_hooks/flutter_hooks.dart';
|
import 'package:flutter_hooks/flutter_hooks.dart';
|
||||||
@ -125,7 +127,9 @@ class ControlBottomAppBar extends HookConsumerWidget {
|
|||||||
return [
|
return [
|
||||||
if (hasRemote)
|
if (hasRemote)
|
||||||
ControlBoxButton(
|
ControlBoxButton(
|
||||||
iconData: Icons.share_rounded,
|
iconData: Platform.isAndroid
|
||||||
|
? Icons.share_rounded
|
||||||
|
: Icons.ios_share_rounded,
|
||||||
label: "control_bottom_app_bar_share".tr(),
|
label: "control_bottom_app_bar_share".tr(),
|
||||||
onPressed: enabled ? () => onShare(true) : null,
|
onPressed: enabled ? () => onShare(true) : null,
|
||||||
),
|
),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user