1
0
mirror of https://github.com/immich-app/immich.git synced 2024-12-25 10:43:13 +02:00

chore(mobile): share logo platform consistency (#3290)

This commit is contained in:
Alex 2023-07-15 20:11:51 -05:00 committed by GitHub
parent b34f4345e1
commit 436a2e9bf3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 2 deletions

View File

@ -412,7 +412,11 @@ class GalleryViewerPage extends HookConsumerWidget {
showUnselectedLabels: false, showUnselectedLabels: false,
items: [ items: [
BottomNavigationBarItem( BottomNavigationBarItem(
icon: const Icon(Icons.ios_share_rounded), icon: Icon(
Platform.isAndroid
? Icons.share_rounded
: Icons.ios_share_rounded,
),
label: 'control_bottom_app_bar_share'.tr(), label: 'control_bottom_app_bar_share'.tr(),
tooltip: 'control_bottom_app_bar_share'.tr(), tooltip: 'control_bottom_app_bar_share'.tr(),
), ),

View File

@ -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:hooks_riverpod/hooks_riverpod.dart'; import 'package:hooks_riverpod/hooks_riverpod.dart';
@ -39,7 +41,9 @@ class ControlBottomAppBar extends ConsumerWidget {
return Row( return Row(
children: [ children: [
ControlBoxButton( ControlBoxButton(
iconData: Icons.ios_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 : null, onPressed: enabled ? onShare : null,
), ),