Closed r-ilagan closed 1 year ago
Hi there,
It is important to note that the dart:ffi package is not designed to be used with web-based Flutter applications, and attempting to use it may result in compilation errors or other issues.
If anyone has experience with the building dart:ffi package in Web to fix compile issues and might be able to offer some guidance, I would really appreciate it.
Thank you for your time and help.
Best regards, Khoren
Is there a way to expose the library only when compiling for mobile?
@r-ilagan
I have released a new version v0.9.0 and would like to ask if you could please check if the issue still persists in the new version.
Hi @khoren93 ,
I just tested out the new version and it works! Web is able to run perfectly. Thank you for the quick resolution! I also noticed a change in the onScan()
parameter with CodeResult
to Code
. Perhaps it should be documented. Other than that, it's looking good on my end.
Thanks again!
I am closing this issue because it has been fixed in the latest version. Thanks for reporting the issue.
Hello I'm having this issue where
ffi
isn't found when compiling for web. It works fine for mobile. Our app has a dependency override ffi: ^2.0.1