fix js api onResponse

This commit is contained in:
2025-09-01 20:55:15 +08:00
parent a91d7fff2d
commit 894a922b8f

View File

@@ -71,7 +71,8 @@ abstract class ImageDownloader {
}
if (configs['onResponse'] is JSInvokable) {
buffer = (configs['onResponse'] as JSInvokable)([buffer]);
final uint8List = Uint8List.fromList(buffer);
buffer = (configs['onResponse'] as JSInvokable)([uint8List]);
(configs['onResponse'] as JSInvokable).free();
}