aboutsummaryrefslogtreecommitdiffstats
path: root/lib/presentation/screens/home/home.dart
diff options
context:
space:
mode:
Diffstat (limited to 'lib/presentation/screens/home/home.dart')
-rw-r--r--lib/presentation/screens/home/home.dart11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/presentation/screens/home/home.dart b/lib/presentation/screens/home/home.dart
index 0ee52ac..6e3e119 100644
--- a/lib/presentation/screens/home/home.dart
+++ b/lib/presentation/screens/home/home.dart
@@ -1,4 +1,6 @@
import 'package:flutter_ics_homescreen/export.dart';
+
+import '../../common_widget/voice_assistant_button.dart';
// import 'package:media_kit_video/media_kit_video.dart';
final bkgImageProvider = Provider((ref) {
@@ -76,6 +78,15 @@ class HomeScreenState extends ConsumerState<HomeScreen> {
height: 500,
child: const VolumeFanControl()),
),
+ // Voice Assistant Button
+ if (appState != AppState.splash && ref.watch(voiceAssistantStateProvider.select((value)=>value.isVoiceAssistantEnable)))
+ Positioned(
+ top: MediaQuery.of(context).size.height * 0.82,
+ child: Container(
+ padding: const EdgeInsets.only(left: 8),
+ child: const VoiceAssistantButton()
+ ),
+ ),
],
),
bottomNavigationBar: