The Dart VM now supports calling C/C++ functions directly through the Foreign Function Interface (dart:ffi). Flutter uses the plugin project type to encapsulate the Dart interface abstraction together with the C/C++ source code, build instructions and a example app. Unlike normal plugins there's no Kotlin or Swift code. We’ll cover creating a dart:ffi plugin, using Xcode or Android Studio to view and edit the C/C++, defining the Dart-C bindings and testing on iOS and Android.
GitHub link: github.com/richardheap/libres...
19 апр 2020