aboutsummaryrefslogtreecommitdiffstats
path: root/lib/presentation/screens
diff options
context:
space:
mode:
authorAnuj Solanki <anuj603362@gmail.com>2024-10-17 22:12:56 +0530
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2024-10-22 11:49:11 +0000
commitf8b39a2902e73422259965e724a44c56f49ce103 (patch)
tree3e95c7f307a57615780a5ba652e90c3a5f5ad377 /lib/presentation/screens
parent3f1370ada560d824e1cf2258e7c475a32b750e95 (diff)
Make Voice Assistant Toggle Conditional
- Removed the Voice Assistant toggle button from the settings page when agl-offline-voice-agent feature is not enabled. Bug-AGL: SPEC-5265 Change-Id: I65aa011cffe90663106a0d8e4fab021972f51e87 Signed-off-by: Anuj Solanki <anuj603362@gmail.com>
Diffstat (limited to 'lib/presentation/screens')
-rw-r--r--lib/presentation/screens/settings/widgets/settings_content.dart1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/presentation/screens/settings/widgets/settings_content.dart b/lib/presentation/screens/settings/widgets/settings_content.dart
index 458677c..b43c07b 100644
--- a/lib/presentation/screens/settings/widgets/settings_content.dart
+++ b/lib/presentation/screens/settings/widgets/settings_content.dart
@@ -56,6 +56,7 @@ class Settings extends ConsumerWidget {
voidCallback: () {
ref.read(appProvider.notifier).update(AppState.audioSettings);
}),
+ if(ref.watch(appConfigProvider).enableVoiceAssistant)
VoiceAssistantSettingsTile(
icon: Icons.keyboard_voice_outlined,
title: "Voice Assistant",