refactor: replace numeric tab indexes with NavigationTabId

This commit is contained in:
edde746
2026-03-15 22:31:54 +01:00
parent af0de5c0a9
commit db6161d84e
6 changed files with 208 additions and 324 deletions
-4
View File
@@ -35,10 +35,6 @@ class NavigationTab {
}).toList();
}
/// Check if a visual index corresponds to a specific tab ID
static bool isTabAtIndex(NavigationTabId id, int index, {required bool isOffline, bool hasLiveTv = false}) {
return indexFor(id, isOffline: isOffline, hasLiveTv: hasLiveTv) == index;
}
}
// Label getters (must be top-level for const constructor)