From e9b3e22addac99f10adca28369abbc4565c6e4de Mon Sep 17 00:00:00 2001 From: tanlongsheng <252620078@qq.com> Date: Thu, 24 Apr 2025 11:08:23 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/modules/chat/views/chat_view.dart | 38 +++++++++++++++++++++++---- 1 file changed, 33 insertions(+), 5 deletions(-) diff --git a/lib/modules/chat/views/chat_view.dart b/lib/modules/chat/views/chat_view.dart index 157536943..9f4864f0e 100644 --- a/lib/modules/chat/views/chat_view.dart +++ b/lib/modules/chat/views/chat_view.dart @@ -411,6 +411,15 @@ class ChatView extends GetView { ), child: Row( children: [ + if (!controller.isHoldSpeak.value) 6.horizontalSpace, + if (!controller.isHoldSpeak.value) + Padding( + padding: EdgeInsets.all(6.w), + child: Icon( + Icons.camera_alt_outlined, + size: 28.w, + ), + ), Expanded( child: Obx( () => controller.isTextInput.value @@ -448,7 +457,7 @@ class ChatView extends GetView { }, child: Container( padding: EdgeInsets.only( - left: controller.isHoldSpeak.value ? 0 : 46.w), + left: controller.isHoldSpeak.value ? 0 : 40.w), color: Colors.transparent, child: controller.isHoldSpeak.value ? Row( @@ -487,12 +496,12 @@ class ChatView extends GetView { controller.isTextInput.value = !controller.isTextInput.value; }, child: Container( - width: 30.w, - height: 30.w, - margin: EdgeInsets.all(8.w), + width: 28.w, + height: 28.w, + margin: EdgeInsets.all(6.w), alignment: Alignment.center, decoration: BoxDecoration( - borderRadius: BorderRadius.circular(30.r), + borderRadius: BorderRadius.circular(28.r), border: Border.all( color: isDarkMode ? Colors.white : Colors.black87, width: 2, @@ -506,6 +515,25 @@ class ChatView extends GetView { ), ), ), + if (!controller.isHoldSpeak.value) + Container( + width: 28.w, + height: 28.w, + margin: EdgeInsets.all(6.w), + alignment: Alignment.center, + decoration: BoxDecoration( + borderRadius: BorderRadius.circular(28.r), + border: Border.all( + color: isDarkMode ? Colors.white : Colors.black87, + width: 2, + ), + ), + child: Icon( + Icons.add, + size: 20.w, + ), + ), + if (!controller.isHoldSpeak.value) 6.horizontalSpace, ], ), ); From b7f28a6450f0caf9fd5b5583899a3a517851be89 Mon Sep 17 00:00:00 2001 From: tanlongsheng <252620078@qq.com> Date: Thu, 24 Apr 2025 11:25:06 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=AE=9E=E7=8E=B0?= =?UTF-8?q?=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/data/services/speech_impl/volcano_asr_api_service.dart | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/data/services/speech_impl/volcano_asr_api_service.dart b/lib/data/services/speech_impl/volcano_asr_api_service.dart index bab3790ef..d2868d887 100644 --- a/lib/data/services/speech_impl/volcano_asr_api_service.dart +++ b/lib/data/services/speech_impl/volcano_asr_api_service.dart @@ -809,4 +809,9 @@ class VolcanoAsrApiService implements AsrService { _isContinuousRecognitionActive = false; _isRecognitionEndRequested = false; } + + @override + Future pushAudioData(Uint8List data) { + throw UnimplementedError(); + } }