aboutsummaryrefslogtreecommitdiffstats
path: root/lib/utils/app_config.dart
diff options
context:
space:
mode:
authorMalik Talha <talhamalik727x@gmail.com>2023-11-16 22:04:56 +0500
committerMalik Talha <talhamalik727x@gmail.com>2023-11-16 22:04:56 +0500
commitecd34435c1a74b39bf41d59ad479fdc85d0afb7b (patch)
tree1ed954b6c53321f854355bf82d13b736364e595b /lib/utils/app_config.dart
parentd433980265de4eccd343dcbfc92c3e7416057842 (diff)
Add themes to voice assistant app
Add four themes: "light", "dark", "textured-light", and "textured-dark" to the voice assistant app. Themes can be changed by modifying assets/config.json file. Bug-AGL: SPEC-4906 Signed-off-by: Malik Talha <talhamalik727x@gmail.com> Change-Id: I3e257da70543c7918e4f0cf96a62907390af8480
Diffstat (limited to 'lib/utils/app_config.dart')
-rw-r--r--lib/utils/app_config.dart5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/utils/app_config.dart b/lib/utils/app_config.dart
index 8f5c566..eacb10f 100644
--- a/lib/utils/app_config.dart
+++ b/lib/utils/app_config.dart
@@ -5,8 +5,10 @@ import 'package:flutter/services.dart';
class AppConfig {
late String grpcHost;
late int grpcPort;
+ late String theme;
- AppConfig({required this.grpcHost, required this.grpcPort});
+ AppConfig(
+ {required this.grpcHost, required this.grpcPort, required this.theme});
factory AppConfig.fromAsset() {
return AppConfig._();
@@ -21,6 +23,7 @@ class AppConfig {
return AppConfig(
grpcHost: jsonMap['grpc_host'],
grpcPort: jsonMap['grpc_port'],
+ theme: jsonMap['theme'],
);
}
}