aboutsummaryrefslogtreecommitdiffstats
path: root/lib/providers/service_status.dart
diff options
context:
space:
mode:
authorMalik Talha <talhamalik727x@gmail.com>2023-10-23 02:00:01 +0500
committerMalik Talha <talhamalik727x@gmail.com>2023-10-26 21:36:57 +0500
commit8417e9daeecbdb3847de401b0fcc6304d246a787 (patch)
treea9dafba232ee7e458358861d1356636c079a12da /lib/providers/service_status.dart
parent8d38450e46ff3854ade4005c4132edfb1aabb9b4 (diff)
Add flutter voice assistant app
A flutter based gRPC client Voice Assistant made specifically to communicate with the Voice Agent service. SPEC-4906 Signed-off-by: Malik Talha <talhamalik727x@gmail.com> Change-Id: Ic4a382c1cdb78f1a79f985e3d37ce2fb06c53203
Diffstat (limited to 'lib/providers/service_status.dart')
-rw-r--r--lib/providers/service_status.dart12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/providers/service_status.dart b/lib/providers/service_status.dart
new file mode 100644
index 0000000..595c92e
--- /dev/null
+++ b/lib/providers/service_status.dart
@@ -0,0 +1,12 @@
+import 'package:flutter/material.dart';
+
+class ServiceStatusProvider extends ChangeNotifier {
+ bool _isServiceOnline = false;
+
+ bool get isServiceOnline => _isServiceOnline;
+
+ void setServiceStatus(bool isOnline) {
+ _isServiceOnline = isOnline;
+ notifyListeners(); // Notify listeners (i.e., widgets that depend on this value) about the change
+ }
+}