From b750cc3c6776046c2e2519d7d2748a7a3c47f68c Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sat, 14 Dec 2024 01:45:36 +0800 Subject: [PATCH] :bug: Fix cached un-analyzed attachment meta --- lib/main.dart | 2 +- lib/widgets/chat/chat_message_input.dart | 5 ----- pubspec.lock | 4 ++-- pubspec.yaml | 2 +- 4 files changed, 4 insertions(+), 9 deletions(-) diff --git a/lib/main.dart b/lib/main.dart index 4e815b5..82c953d 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -187,7 +187,7 @@ class _AppSplashScreenState extends State<_AppSplashScreen> { body: Container( constraints: const BoxConstraints(maxWidth: 180), child: Column( - mainAxisAlignment: MainAxisAlignment.center, + mainAxisAlignment: MainAxisAlignment.center, mainAxisSize: MainAxisSize.min, children: [ Image.asset("assets/icon/icon.png", width: 64, height: 64), diff --git a/lib/widgets/chat/chat_message_input.dart b/lib/widgets/chat/chat_message_input.dart index 6c5f0d2..6a24520 100644 --- a/lib/widgets/chat/chat_message_input.dart +++ b/lib/widgets/chat/chat_message_input.dart @@ -104,11 +104,6 @@ class ChatMessageInputState extends State { return; } - attach.putCache( - _attachments.where((e) => e.attachment != null).map((e) => e.attachment!), - noCheck: true, - ); - // Send the message // NOTICE This future should not be awaited, so that the message can be sent in the background and the user can continue to type widget.controller.sendMessage( diff --git a/pubspec.lock b/pubspec.lock index fd463c7..3a63e0e 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -482,10 +482,10 @@ packages: dependency: "direct main" description: name: file_picker - sha256: "89500471922dd3a89ab0d6e13ab4a2268c25474bff4ca7c628f55c76e0ced1de" + sha256: "16dc141db5a2ccc6520ebb6a2eb5945b1b09e95085c021d9f914f8ded7f1465c" url: "https://pub.dev" source: hosted - version: "8.1.5" + version: "8.1.4" file_saver: dependency: "direct main" description: diff --git a/pubspec.yaml b/pubspec.yaml index 2ceec36..bea5314 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -61,7 +61,7 @@ dependencies: relative_time: ^5.0.0 image_picker: ^1.1.2 cross_file: ^0.3.4+2 - file_picker: ^8.1.5 # pinned due to compile failed on android, https://github.com/miguelpruivo/flutter_file_picker/issues/1643 + file_picker: 8.1.4 # pinned due to compile failed on android, https://github.com/miguelpruivo/flutter_file_picker/issues/1643 croppy: ^1.3.1 flutter_expandable_fab: ^2.3.0 dropdown_button2: ^2.3.9