feat(lyrics): keep the screen awake while viewing lyrics

This commit is contained in:
zarzet committed 2026-09-30 20:21:21 +07:00
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,