fix(tv): smooth sidebar expansion behavior
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user