You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currency working on an app that needs to use digital signatures, specifically EdDSA. Since there are C implementations which are stable and known to be reliable, I think it would be safer to use FFI, rather than trying to port the algorithm to dart.
Especially with WebAssembly becoming widely supported, Flutter would be at a disadvantage if it didn't allow FFI to use native libraries.
You may be able to use our plugins system to communicate between the Flutter Dart code and platform-specific libraries: https://flutter.io/platform-plugins/
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
eseidelGoogle commentedon Mar 3, 2016
Here is the relevant code in the dart CLI:
https://github.com/dart-lang/sdk/blob/1e5eab3a143f0736d925f546952006fb31127e9a/runtime/bin/dartutils.cc#L445
johnmccutchan commentedon Mar 4, 2016
Assuming we keep this in the embedder, what happens when an import 'dart-ext:' occurs is the following:
In existing extensions, in the _Init method mostly just wires up the native resolver for the Dart code.
I wonder if we could formulate extensions differently and support them directly in the VM. I'll investigate this.
johnmccutchan commentedon Mar 9, 2016
Related- https://codereview.chromium.org/1773643002/
Hixie commentedon May 26, 2016
I've moved this to the 2.0 milestone since it doesn't seem like a blocker for a quality first release.
eseidelGoogle commentedon Sep 20, 2016
This is not needed by any near-term customer. The only bug I've seen which might use this is opengl support: #179 iceboxing.
nacardin commentedon Jun 20, 2017
I'm currency working on an app that needs to use digital signatures, specifically EdDSA. Since there are C implementations which are stable and known to be reliable, I think it would be safer to use FFI, rather than trying to port the algorithm to dart.
Especially with WebAssembly becoming widely supported, Flutter would be at a disadvantage if it didn't allow FFI to use native libraries.
sethladd commentedon Jun 20, 2017
You may be able to use our plugins system to communicate between the Flutter Dart code and platform-specific libraries: https://flutter.io/platform-plugins/
eseidelGoogle commentedon Jun 20, 2017
#7053 is probably what you want. You can integrate with C code today with Flutter, you just have to bounce through Java/Obj-C first.
eseidelGoogle commentedon Nov 12, 2018
This need will hopefully be covered by FFI work: dart-lang/sdk#34452 and related tooling work in: #7053
ping996 commentedon Oct 21, 2019
does the flutter support dart native extension? according to use
import 'dart-ext:library_name';https://dart.dev/server/c-interop-native-extensions
[skip ci] don't run Cirrus on tags (flutter#2396)
github-actions commentedon Aug 26, 2021
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.