From 3fc1540f41db9f7e610eecd856eeca5a8f3f96f7 Mon Sep 17 00:00:00 2001 From: edde746 <86283021+edde746@users.noreply.github.com> Date: Tue, 24 Feb 2026 04:56:06 +0100 Subject: [PATCH] feat: make companion remote dialog use focusablebutton --- .../remote_session_dialog.dart | 20 +++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/lib/widgets/companion_remote/remote_session_dialog.dart b/lib/widgets/companion_remote/remote_session_dialog.dart index 5d0bd440..ace77e9d 100644 --- a/lib/widgets/companion_remote/remote_session_dialog.dart +++ b/lib/widgets/companion_remote/remote_session_dialog.dart @@ -5,6 +5,7 @@ import 'package:qr_flutter/qr_flutter.dart'; import '../../i18n/strings.g.dart'; import '../../providers/companion_remote_provider.dart'; +import '../../focus/focusable_button.dart'; import '../../utils/app_logger.dart'; class RemoteSessionDialog extends StatefulWidget { @@ -253,19 +254,30 @@ class _RemoteSessionDialogState extends State { label: Text(t.companionRemote.session.newSession), ), const SizedBox(width: 8), - TextButton( + FocusableButton( onPressed: () async { await provider.leaveSession(); if (context.mounted) { Navigator.of(context).pop(); } }, - child: Text(t.common.disconnect), + child: TextButton( + onPressed: () async { + await provider.leaveSession(); + if (context.mounted) { + Navigator.of(context).pop(); + } + }, + child: Text(t.common.disconnect), + ), ), const SizedBox(width: 8), - FilledButton( + FocusableButton( onPressed: () => Navigator.of(context).pop(), - child: Text(t.companionRemote.session.minimize), + child: FilledButton( + onPressed: () => Navigator.of(context).pop(), + child: Text(t.companionRemote.session.minimize), + ), ), ], ),