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,
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(),
),

View file

@ -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,
),