mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-10-05 07:36:53 +02:00
feat(lyrics): keep the screen awake while viewing lyrics
This commit is contained in:
1 parent
a1cec6de51
commit
8aa8d598d8
14 files changed
+276
No files matched your search
@@ -613,6 +613,11 @@ class SettingsNotifier extends Notifier<AppSettings> {
|
||||
}
|
||||
}
|
||||
|
||||
void setKeepScreenOnLyrics(bool enabled) {
|
||||
state = state.copyWith(keepScreenOnLyrics: enabled);
|
||||
_saveSettings();
|
||||
}
|
||||
|
||||
void setLyricsMode(String mode) {
|
||||
if (mode == 'embed' || mode == 'external' || mode == 'both') {
|
||||
state = state.copyWith(lyricsMode: mode);
|
||||
|
||||
Reference in new issue
Block a user