Рет қаралды 3,335
This video shows how to use dart ffi in Linux. We can call c library from Linux using Flutter
Dart FFI and Linux | Call C library from Linux using Flutter*
We will cover briefly:
1. Creating C Library
2. Call from Flutter on Linux
3. Passing parameter from Dart to C
4. Passing structs from Dart to C
This video assumes that the reader has knowledge about FFI and has already installed Flutter on Linux
0:13 App Demo
0:50 Create C Library in Linux
2:27 Create C Library - Random Number
3:39 Setup FFI in Flutter
5:02 Create C Library - String Reverse
5:34 Calling from Flutter - Passing param to C
6:55 Create C Library - Structs
7:45 Calling from Flutter - Passing structs to C
Medium: / dart-ffi-and-linux
Website: flatteredwithf...
DevTo: dev.to/aseemwa...
Source Code: github.com/Ase...
In case, this helped, pass me a coffee!! 😊😊
www.buymeacoff...
#dart #linux #c