mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-09-30 13:19:44 +02:00
feat(lyrics): animate pronunciation and translation visibility
Add a contextual language menu for available lyric supplements in portrait and landscape. Remember independent visibility choices across tracks and player sessions without changing embedded lyrics or download options. Fade and collapse supplements over 320 ms while interpolating lyric row heights and keeping the active line aligned. Honor reduced motion and control auto-hide; cover menu availability, persistence, animation, and word timing in widget tests.
This commit is contained in:
1 parent
87321c7efd
commit
3ca881b169
8 files changed
+500
-33
No files matched your search
@@ -912,6 +912,16 @@ class SettingsNotifier extends Notifier<AppSettings> {
|
||||
state = state.copyWith(playerMode: normalized);
|
||||
_saveSettings();
|
||||
}
|
||||
|
||||
void setPlayerShowPronunciation(bool visible) {
|
||||
state = state.copyWith(playerShowPronunciation: visible);
|
||||
_saveSettings();
|
||||
}
|
||||
|
||||
void setPlayerShowTranslation(bool visible) {
|
||||
state = state.copyWith(playerShowTranslation: visible);
|
||||
_saveSettings();
|
||||
}
|
||||
}
|
||||
|
||||
final settingsProvider = NotifierProvider<SettingsNotifier, AppSettings>(
|
||||
|
||||
Reference in new issue
Block a user