From db4b45aaacf381687f989a5558827c0da321c50a Mon Sep 17 00:00:00 2001 From: Jolie <412895109@qq.com> Date: Thu, 13 Nov 2025 02:16:31 +0800 Subject: [PATCH] =?UTF-8?q?feat(message):=20=E5=9C=A8=E7=9B=B8=E6=9C=BA?= =?UTF-8?q?=E9=80=89=E6=8B=A9=E5=99=A8=E4=B8=AD=E5=90=AF=E7=94=A8=E5=BD=95?= =?UTF-8?q?=E5=88=B6=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修改 CameraPickerConfig以支持录制功能 - 更新 pickFromCamera 方法的配置参数- 保持现有拍照功能不变 --- lib/widget/message/more_options_view.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/widget/message/more_options_view.dart b/lib/widget/message/more_options_view.dart index 9dd5750..44bbcc7 100644 --- a/lib/widget/message/more_options_view.dart +++ b/lib/widget/message/more_options_view.dart @@ -88,7 +88,9 @@ class MoreOptionsView extends StatelessWidget { try { AssetEntity? entity = await CameraPicker.pickFromCamera( context, - pickerConfig: const CameraPickerConfig(), + pickerConfig: const CameraPickerConfig( + enableRecording: true, + ), ); if (entity != null) { // 获取拍摄照片的文件路径