From a40879849b0a58fd43d038f4bb31dba780bdb1f9 Mon Sep 17 00:00:00 2001 From: edde746 <86283021+edde746@users.noreply.github.com> Date: Sun, 3 May 2026 02:00:39 +0200 Subject: [PATCH] fix(tvos): hide browser auth option --- lib/screens/auth_screen.dart | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/lib/screens/auth_screen.dart b/lib/screens/auth_screen.dart index 1e4ad9db..eec985bc 100644 --- a/lib/screens/auth_screen.dart +++ b/lib/screens/auth_screen.dart @@ -286,6 +286,7 @@ class _AuthScreenState extends State { Widget _buildInitialButtons(BuildContext context, VoidCallback startBrowser, VoidCallback startQr, bool busy) { final isTV = PlatformDetector.isTV(); + final isAppleTV = PlatformDetector.isAppleTV(); return Column( mainAxisSize: MainAxisSize.min, crossAxisAlignment: CrossAxisAlignment.stretch, @@ -300,15 +301,17 @@ class _AuthScreenState extends State { child: Text(t.auth.showQRCode), ), ), - const SizedBox(height: 12), - FocusableButton( - onPressed: busy ? null : startBrowser, - child: OutlinedButton( + if (!isAppleTV) ...[ + const SizedBox(height: 12), + FocusableButton( onPressed: busy ? null : startBrowser, - style: OutlinedButton.styleFrom(padding: const EdgeInsets.symmetric(vertical: 16)), - child: Text(t.auth.useBrowser), + child: OutlinedButton( + onPressed: busy ? null : startBrowser, + style: OutlinedButton.styleFrom(padding: const EdgeInsets.symmetric(vertical: 16)), + child: Text(t.auth.useBrowser), + ), ), - ), + ], ] else ...[ ElevatedButton.icon( onPressed: busy ? null : startBrowser,