From 0b59086cdddd40689e57969aa7914ba38f1ec2dd Mon Sep 17 00:00:00 2001 From: Anuj-S62 Date: Thu, 11 Jul 2024 15:18:31 +0530 Subject: Update Voice Agent Flutter App - update voice-agent flutter app to use whisper AI for speech-to-text functionality. - Integrated SharedPreferences to store the application state. Bug-AGL: SPEC-5200 Change-Id: I9a05b1d135c1fa07949333391ff828f166b7fe8e Signed-off-by: Anuj-S62 --- lib/main.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/main.dart') diff --git a/lib/main.dart b/lib/main.dart index 9dfbd54..6349d8d 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -1,4 +1,5 @@ import 'package:flutter/material.dart'; +import 'package:flutter_voiceassistant/screens/loading_screen.dart'; import 'package:provider/provider.dart'; import 'package:flutter_svg/flutter_svg.dart'; import 'models/app_state.dart'; @@ -103,7 +104,7 @@ class App extends StatelessWidget { Consumer( builder: (context, provider, child) { return provider.isServiceOnline - ? HomePage(config: config, wakeWord: provider.wakeWord) + ? Loading(config: config, wakeWord: provider.wakeWord) : ErrorScreen( onRetry: onRetry, ); -- cgit 1.2.3-korg