feat(favorites): Fix Loading Issues and Add New Display View#414
Merged
RadicalMuffinMan merged 1 commit intoJun 7, 2026
Merged
Conversation
RadicalMuffinMan
requested changes
Jun 7, 2026
| @@ -220,72 +325,125 @@ class _FavoritesScreenState extends State<FavoritesScreen> { | |||
| final isNeon = ThemeRegistry.active.id == ThemeRegistry.neonPulseId; | |||
Contributor
There was a problem hiding this comment.
Suggested change
| final isNeon = ThemeRegistry.active.id == ThemeRegistry.neonPulseId; |
supressFocusGlow from 317 already covers this and this isnt needed
| final focusColor = Color( | ||
| _prefs.get(UserPreferences.focusColor).colorValue, | ||
| ); | ||
| final isNeon = ThemeRegistry.active.id == ThemeRegistry.neonPulseId; |
Contributor
There was a problem hiding this comment.
Suggested change
| final isNeon = ThemeRegistry.active.id == ThemeRegistry.neonPulseId; |
same thing
| : 1.0; | ||
| final textHeight = (hasSubtitles ? 42.0 : 24.0) * desktopTextScale; | ||
| final childAspectRatio = cellWidth / (cellWidth / ar + textHeight); | ||
|
|
Contributor
There was a problem hiding this comment.
Suggested change
| final focusColor = Color(_prefs.get(UserPreferences.focusColor).colorValue); | |
| final focusExpansion = _prefs.get(UserPreferences.cardFocusExpansion); | |
| final suppressFocusGlow = ThemeRegistry.active.borders.focusGlow.isNotEmpty; | |
instead of redrawing for every card just make it a constant so its computed once not per cell
| delegate: SliverChildBuilderDelegate((context, index) { | ||
| final item = _vm.gridItems[index]; | ||
| final itemAspectRatio = _itemAspectRatio(item); | ||
| final focusColor = Color( |
Contributor
There was a problem hiding this comment.
Suggested change
| final focusColor = Color( |
| final item = _vm.gridItems[index]; | ||
| final itemAspectRatio = _itemAspectRatio(item); | ||
| final focusColor = Color( | ||
| _prefs.get(UserPreferences.focusColor).colorValue, |
Contributor
There was a problem hiding this comment.
Suggested change
| _prefs.get(UserPreferences.focusColor).colorValue, |
| final itemAspectRatio = _itemAspectRatio(item); | ||
| final focusColor = Color( | ||
| _prefs.get(UserPreferences.focusColor).colorValue, | ||
| ); |
Contributor
There was a problem hiding this comment.
Suggested change
| ); |
| _prefs.get(UserPreferences.focusColor).colorValue, | ||
| ); | ||
| final isNeon = ThemeRegistry.active.id == ThemeRegistry.neonPulseId; | ||
| final focusExpansion = _prefs.get(UserPreferences.cardFocusExpansion); |
Contributor
There was a problem hiding this comment.
Suggested change
| final focusExpansion = _prefs.get(UserPreferences.cardFocusExpansion); |
| ); | ||
| final isNeon = ThemeRegistry.active.id == ThemeRegistry.neonPulseId; | ||
| final focusExpansion = _prefs.get(UserPreferences.cardFocusExpansion); | ||
| final suppressFocusGlow = ThemeRegistry.active.borders.focusGlow.isNotEmpty; |
Contributor
There was a problem hiding this comment.
Suggested change
| final suppressFocusGlow = ThemeRegistry.active.borders.focusGlow.isNotEmpty; |
b611adf to
2f62849
Compare
Contributor
Author
|
All changes done! |
…cking - Restored focus indicator border on MediaCards on Favorites screen. - Introduced FavoritesViewStyle enum (home/library) in preferences. - Added 'Switch View' setting to toggled display settings dialog on the Favorites screen. - Implemented flat grid view layout builder with scroll-to-bottom lazy-loading and focus node mixin. - Upgraded LockedFocusRow key event handling to propagate unhandled vertical focus events instead of swallowing them. - Implemented onVerticalNavigation row key tracking and viewport centering (via Scrollable.ensureVisible) to easily jump between Movie, TV Show, and other category rows on TV/desktop.
2f62849 to
df4df20
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
feat(favorites): Fix Loading Issues and Add New Display View
Summary
This PR implements several enhancements to the Favorites screen, introducing dynamic view style switching (Home/Rows vs Library/Grid views), restoring key focus feedback, implementing smooth row-to-row vertical jumping, and extending lazy loading support.
Related Issues
Link related issues or tickets separated by commas.
Type of Change
Changes Made
MediaCards, restoring visible border feedback (essential for TV/D-pad navigation layouts like Neon Pulse).LockedFocusRowkey event handling to bubble unhandled vertical D-pad navigation key events (up/down) up to the system rather than trapping them. Implemented custom row-to-row jump tracking (onVerticalNavigation) in the Favorites home view to shift focus and center the viewport on the active row usingScrollable.ensureVisible. Focus bubbles back up to header buttons (Home, Sort, Settings cog) naturally when navigating UP from the top row.Files Changed
lib/preference/preference_constants.dart: IntroducedFavoritesViewStyleenum (homeandlibrary).lib/preference/user_preferences.dart: Registered thefavoritesViewStyleuser preference.lib/data/viewmodels/favorites_view_model.dart: Implemented fetching pagination offsets for flat grid paging (loadMoreGrid) and row category paging (loadMoreForType).lib/ui/widgets/focus/locked_focus_row.dart: UpdatedisUpKeyandisDownKeyevent logic to respect the vertical navigation handler's return state and bubble unhandled key presses.lib/ui/screens/browse/favorites_screen.dart:_buildGrid(),_onRowVerticalNavigation, and added view switching UI selection tiles inside Display Settings.Platform
Testing
Describe how this change was tested.
Test Steps
Screenshots (if applicable)
OLD LIBRARY VIEW
NEW LIBRARY VIEW
Checklist