Browse Source

refactor(chat_input_bar): 移除调试日志代码- 删除发送消息时的GetX日志输出

- 删除选择图片时的日志记录
- 删除拍照功能中的调试日志
- 清理无用的日志打印逻辑,提升代码整洁度
ios
Jolie 4 months ago
parent
commit
f399fa7347
1 changed files with 0 additions and 10 deletions
  1. 10
      lib/widget/message/chat_input_bar.dart

10
lib/widget/message/chat_input_bar.dart

@ -22,10 +22,6 @@ class _ChatInputBarState extends State<ChatInputBar> {
void _handleSendMessage() {
if (_textController.text.isNotEmpty) {
// 使GetX日志而不是print
if (Get.isLogEnable) {
Get.log("发送消息: ${_textController.text}");
}
widget.onSendMessage(_textController.text);
_textController.clear();
}
@ -41,9 +37,6 @@ class _ChatInputBarState extends State<ChatInputBar> {
}
void _handleImageTap(List<String> imagePaths) {
if (Get.isLogEnable) {
Get.log("选择了图片: $imagePaths");
}
//
if (widget.onImageSelected != null) {
widget.onImageSelected!(imagePaths);
@ -51,9 +44,6 @@ class _ChatInputBarState extends State<ChatInputBar> {
}
void _handleCameraTap(String imagePath) {
if (Get.isLogEnable) {
Get.log("拍摄了照片: $imagePath");
}
//
if (widget.onImageSelected != null) {
widget.onImageSelected!([imagePath]);

Loading…
Cancel
Save