From 436a2e9bf30e5b991755464309484beeaf1369fe Mon Sep 17 00:00:00 2001 From: Alex Date: Sat, 15 Jul 2023 20:11:51 -0500 Subject: [PATCH] chore(mobile): share logo platform consistency (#3290) --- mobile/lib/modules/asset_viewer/views/gallery_viewer.dart | 6 +++++- mobile/lib/modules/home/ui/control_bottom_app_bar.dart | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/mobile/lib/modules/asset_viewer/views/gallery_viewer.dart b/mobile/lib/modules/asset_viewer/views/gallery_viewer.dart index 1e3e37d668..66ab07471d 100644 --- a/mobile/lib/modules/asset_viewer/views/gallery_viewer.dart +++ b/mobile/lib/modules/asset_viewer/views/gallery_viewer.dart @@ -412,7 +412,11 @@ class GalleryViewerPage extends HookConsumerWidget { showUnselectedLabels: false, items: [ 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(), tooltip: 'control_bottom_app_bar_share'.tr(), ), diff --git a/mobile/lib/modules/home/ui/control_bottom_app_bar.dart b/mobile/lib/modules/home/ui/control_bottom_app_bar.dart index df5321a535..6ed0d49a14 100644 --- a/mobile/lib/modules/home/ui/control_bottom_app_bar.dart +++ b/mobile/lib/modules/home/ui/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:hooks_riverpod/hooks_riverpod.dart'; @@ -39,7 +41,9 @@ class ControlBottomAppBar extends ConsumerWidget { return Row( children: [ ControlBoxButton( - iconData: Icons.ios_share_rounded, + iconData: Platform.isAndroid + ? Icons.share_rounded + : Icons.ios_share_rounded, label: "control_bottom_app_bar_share".tr(), onPressed: enabled ? onShare : null, ),