Drag to upload

This commit is contained in:
2024-06-29 20:25:29 +08:00
parent 85bba21285
commit e336d2372a
15 changed files with 304 additions and 160 deletions

View File

@ -88,7 +88,8 @@ class _PersonalizeScreenState extends State<PersonalizeScreen> {
final file = File(image.path);
final hash = await calculateFileSha256(file);
attachResp = await provider.createAttachment(
file,
await file.readAsBytes(),
file.path,
hash,
'p.$position',
ratio: await calculateFileAspectRatio(file),