💄 Give name for pasted image

This commit is contained in:
2026-01-14 22:40:10 +08:00
parent dd7696132c
commit 9437339b0f
3 changed files with 18 additions and 3 deletions

View File

@@ -284,7 +284,12 @@ class ChatInput extends HookConsumerWidget {
onAttachmentsChanged([
...attachments,
UniversalFile(
data: XFile.fromData(image, mimeType: "image/jpeg"),
displayName: 'image.jpeg',
data: XFile.fromData(
image,
mimeType: "image/jpeg",
name: 'image.jpeg',
),
type: UniversalFileType.image,
),
]);