diff options
author | 2023-11-12 04:03:26 +0500 | |
---|---|---|
committer | 2023-11-12 04:03:26 +0500 | |
commit | d433980265de4eccd343dcbfc92c3e7416057842 (patch) | |
tree | 02e364a622c40f333999271862edf4c73ded8c31 /lib/providers | |
parent | 8417e9daeecbdb3847de401b0fcc6304d246a787 (diff) |
Add sample command section to voice assistant app
Add a section that allows to choose and execute sample commands
and minor improvements to app UI.
Bug-AGL: SPEC-4906
Signed-off-by: Malik Talha <talhamalik727x@gmail.com>
Change-Id: I1a279c6ecd1904c428b8403d3ce0750bc063da3b
Diffstat (limited to 'lib/providers')
-rw-r--r-- | lib/providers/service_status.dart | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/providers/service_status.dart b/lib/providers/service_status.dart index 595c92e..ac0e188 100644 --- a/lib/providers/service_status.dart +++ b/lib/providers/service_status.dart @@ -2,11 +2,18 @@ import 'package:flutter/material.dart'; class ServiceStatusProvider extends ChangeNotifier { bool _isServiceOnline = false; + String _wakeWord = ''; bool get isServiceOnline => _isServiceOnline; + String get wakeWord => _wakeWord; void setServiceStatus(bool isOnline) { _isServiceOnline = isOnline; notifyListeners(); // Notify listeners (i.e., widgets that depend on this value) about the change } + + void setWakeWord(String wakeWord) { + _wakeWord = wakeWord; + notifyListeners(); // Notify listeners (i.e., widgets that depend on this value) about the change + } } |