A demo project that implements Flutter FFI synchronization and asynchronous methods. Only implemented on Android platfrom.
-
Invoke C without return value
-
Invoke C with int value return
-
Invoke sync Java/Kotlin method
-
Invoke async Java/Kotlin method
- Flutter 1.17.5+ / Dart 2.10+
Below Flutter 2.0 you'd change the dart_version.h DART_API_DL_MAJOR_VERSION to 1, Otherwise, the asynchronous callback cannot be executed.
Check out example.