This video shows how to create a CLI with the Dart FFI. We use dart2native to create CLI.
* Dart FFI and CLI | CLI using dart2native and FFI *
We will cover briefly about
Using Dart FFI
Fetch login history of a user (macOS)
Create a CLI App
Using Dart FFI
FFI: (Foreign Function Interface) can be used to call the C/C++ language-based APIs.
A statically linked library is embedded into the app's executable image and is loaded when the app starts.
Symbols from a statically linked library can be loaded using DynamicLibrary.executable or DynamicLibrary.process.
A dynamically linked library is distributed in a separate file or folder within the app and loaded on-demand. A dynamically linked library can be loaded into Dart via DynamicLibrary.open.
URL: https://web.flatteredwithflutter.com/
Website: https://flatteredwithflutter.com/dart...
DevTo: https://dev.to/aseemwangoo/dart-ffi-a...
Medium: https://levelup.gitconnected.com/dart...
Source Code: https://github.com/AseemWangoo/Experi...
In case, this helped, pass me a coffee!! 😊😊
https://www.buymeacoffee.com/aseemwangoo
#ffi #flutterWithMe #flatteredwithflutter