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

Source Code: https://github.com/AseemWangoo/flutter_programs/blob/master/ffi_linux.zip

  • 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

#dart #linux #flutter

Dart FFI and Linux | Call C library from Linux using Flutter
7.90 GEEK