fix: Reuse Ping sheet for Sensors #123

This commit is contained in:
Janez T
2026-04-03 11:55:52 +02:00
parent e4eb40cd34
commit 79f8f8dd04
4 changed files with 644 additions and 33 deletions

View File

@@ -1176,18 +1176,6 @@ class SensorTelemetryCard extends StatelessWidget {
label: 'Ping',
onTap: () => _handleAction(context, 'ping'),
),
if (onMoveUp != null)
_SensorSheetAction(
icon: Icons.arrow_upward_rounded,
label: 'Move up',
onTap: () => _handleAction(context, 'move_up'),
),
if (onMoveDown != null)
_SensorSheetAction(
icon: Icons.arrow_downward_rounded,
label: 'Move down',
onTap: () => _handleAction(context, 'move_down'),
),
if (_rawTelemetryHex(contact?.telemetry) != null)
_SensorSheetAction(
icon: Icons.copy_all_outlined,