mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-10-10 18:04:06 +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
@@ -34,6 +34,15 @@ class LyricsSettingsPage extends ConsumerWidget {
|
||||
SliverToBoxAdapter(
|
||||
child: SettingsGroup(
|
||||
children: [
|
||||
SettingsSwitchItem(
|
||||
icon: Icons.light_mode_outlined,
|
||||
title: context.l10n.lyricsKeepScreenOn,
|
||||
subtitle: context.l10n.lyricsKeepScreenOnSubtitle,
|
||||
value: settings.keepScreenOnLyrics,
|
||||
onChanged: (value) => ref
|
||||
.read(settingsProvider.notifier)
|
||||
.setKeepScreenOnLyrics(value),
|
||||
),
|
||||
SettingsSwitchItem(
|
||||
icon: Icons.subtitles_outlined,
|
||||
title: context.l10n.optionsEmbedLyrics,
|
||||
|
||||
@@ -307,6 +307,12 @@ class SettingsSearchCatalog {
|
||||
),
|
||||
],
|
||||
lyrics = [
|
||||
SettingsSearchEntry(
|
||||
icon: Icons.light_mode_outlined,
|
||||
title: l10n.lyricsKeepScreenOn,
|
||||
subtitle: l10n.lyricsKeepScreenOnSubtitle,
|
||||
keywords: const ['screen timeout', 'awake', 'sleep', 'layar'],
|
||||
),
|
||||
SettingsSearchEntry(
|
||||
icon: Icons.subtitles_outlined,
|
||||
title: l10n.optionsEmbedLyrics,
|
||||
|
||||
Reference in new issue
Block a user