fix(#396): use the platform-standard share icon on the BLE log button

The button used Icons.ios_share for all mobile, so Android showed the iOS
share glyph. Split by platform: Android -> Icons.share, iOS -> Icons.ios_share,
desktop -> Icons.folder_open (reveal the saved logs).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
fix/share-icon-android
Strycher 2 months ago
parent d63838a94b
commit 9dc0dbc55d

@ -42,7 +42,16 @@ class _BleDebugLogScreenState extends State<BleDebugLogScreen> {
actions: [
IconButton(
tooltip: isMobile ? 'Share logs' : 'Open logs folder',
icon: Icon(isMobile ? Icons.ios_share : Icons.folder_open),
// Platform-standard share glyph: Android uses Icons.share
// (connected nodes), iOS uses Icons.ios_share (square+arrow),
// desktop reveals the saved file (folder). #396
icon: Icon(
defaultTargetPlatform == TargetPlatform.android
? Icons.share
: isMobile
? Icons.ios_share
: Icons.folder_open,
),
onPressed: () => _exportLogs(context),
),
IconButton(

Loading…
Cancel
Save

Powered by TurnKey Linux.