提交 25369ae8 authored 作者: songchuancai's avatar songchuancai

修改提示语

上级 130ed14a
...@@ -215,7 +215,7 @@ class _HomePageState extends State<HomePage> { ...@@ -215,7 +215,7 @@ class _HomePageState extends State<HomePage> {
onLongPressEnd: (_) async { onLongPressEnd: (_) async {
setState(() => _isListeningPressed = false); setState(() => _isListeningPressed = false);
await stopListening(); await stopListening();
final finalVoiceText = _currentVoiceText; final finalVoiceText = _currentVoiceText;
if (finalVoiceText.isNotEmpty) { if (finalVoiceText.isNotEmpty) {
setState(() { setState(() {
...@@ -227,7 +227,7 @@ class _HomePageState extends State<HomePage> { ...@@ -227,7 +227,7 @@ class _HomePageState extends State<HomePage> {
}); });
await _processAIResponse(finalVoiceText); await _processAIResponse(finalVoiceText);
} }
setState(() { setState(() {
_currentVoiceText = ''; _currentVoiceText = '';
}); });
...@@ -301,7 +301,7 @@ class _HomePageState extends State<HomePage> { ...@@ -301,7 +301,7 @@ class _HomePageState extends State<HomePage> {
return Scaffold( return Scaffold(
appBar: AppBar( appBar: AppBar(
title: BounceInDown( title: BounceInDown(
child: const Text('AI Assistant'), child: const Text('快际新云'),
), ),
leading: const Icon(Icons.menu), leading: const Icon(Icons.menu),
centerTitle: true, centerTitle: true,
...@@ -348,7 +348,7 @@ class _HomePageState extends State<HomePage> { ...@@ -348,7 +348,7 @@ class _HomePageState extends State<HomePage> {
), ),
const SizedBox(height: 20), const SizedBox(height: 20),
const Text( const Text(
'你好!我是你的AI助手,请问有什么可以帮你的吗?', '你好!我是你的快际新云AI助手,请问有什么可以帮你的吗?',
style: TextStyle( style: TextStyle(
fontSize: 20, fontSize: 20,
color: Pallete.mainFontColor, color: Pallete.mainFontColor,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论