perf(tv): reduce navigation rebuilds and artwork fan-out

This commit is contained in:
edde746
2026-07-10 12:07:19 +02:00
parent b46107cb58
commit 1acc83572e
7 changed files with 193 additions and 64 deletions
+1 -7
View File
@@ -95,13 +95,7 @@ class _SettingsScreenState extends State<SettingsScreen> with FocusableTab, Moun
@override
void initState() {
super.initState();
_focusTracker = FocusMemoryTracker(
onFocusChanged: () {
// ignore: no-empty-block - setState triggers rebuild to update focus styling
setStateIfMounted(() {});
},
debugLabelPrefix: 'settings',
);
_focusTracker = FocusMemoryTracker(debugLabelPrefix: 'settings');
if (_keyboardShortcutsSupported) {
KeyboardShortcutsService.getInstance().then((s) {
setStateIfMounted(() => _keyboardService = s);