chore(mobile): share logo platform consistency (#3290)
This commit is contained in:
parent
b34f4345e1
commit
436a2e9bf3
2 changed files with 10 additions and 2 deletions
|
@ -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(),
|
||||
),
|
||||
|
|
|
@ -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,
|
||||
),
|
||||
|
|
Loading…
Reference in a new issue