fix(tv): smooth sidebar expansion behavior

This commit is contained in:
edde746
2026-05-22 03:54:34 +02:00
parent 487c7b87f6
commit fea973a72a
17 changed files with 277 additions and 99 deletions
+2 -2
View File
@@ -233,7 +233,7 @@ class DownloadsScreenState extends State<DownloadsScreen>
},
onCancel: downloadProvider.cancelDownload,
onDelete: downloadProvider.deleteDownload,
onNavigateLeft: () => MainScreenFocusScope.of(context)?.focusSidebar(),
onNavigateLeft: () => MainScreenFocusScope.of(context, listen: false)?.focusSidebar(),
onBack: focusTabBar,
suppressAutoFocus: suppressAutoFocus,
);
@@ -299,7 +299,7 @@ class _DownloadsGridContentState extends State<_DownloadsGridContent> {
/// Navigate focus to the sidebar
void _navigateToSidebar() {
MainScreenFocusScope.of(context)?.focusSidebar();
MainScreenFocusScope.of(context, listen: false)?.focusSidebar();
}
@override