How to pass a list of strings to C In dart ffi

I'm learning how to use dart ffi. I don't have much C experience or knowledge. I'm trying to call a function from a C library(<a href="https://sourceforg...

Can I call a C++ constructor function in dart ffi?

I'm new to ffi. But I successfully used dart-ffi with functions call. Now, I'd like to use a C++ object in dart ffi. I don't know if it is possible, but I trie...

Dart/Flutter FFI: Convert List to Array

I have a struct that receives an array of type Float from a C++ library. <pre><code>class MyStruct extends Struct{ @Array.multi([12]) external Array&lt;F...

How to insert percentage of completion of FFI function?

I am trying to develop android application using flutter. I used <strong>Flutter FFI</strong> to interface and call function from <strong>.C (C language)</strong> file...

Flutter Dev Tools Network Traffic is no longer usable. Is there an alternative?

Is there a way we can efficiently look at network traffic with Flutter when developing for iOS and Android? Flutter obviously doesn't work with proxy tools like...

Flutter(android) call dynamic library(pre-built by rust) failed to load dynamic library in Release mode

I m trying to use a rust pre-build library in my flutter project. I put my core.so in android/app/src/main/jniLibs/ directory, both in arm64-v8a and ...

array of struct from c to dart using ffi flutter

I am trying to get array of 4 x int data using struct from c to dart via ffi.The code is compiling fine but the value i got in dart are garbage value that means i am g...

Testing Library functions in a flutter package with Native Functions using Dart::ffi

I am writing a Dart library to access a C shared object using Flutter. So far, the example app I created is working (somewhat) as expected, but i want to includ...

Flutter error after installing encrypt dependency

I am developing a simple application and in the authentication side i need to use the encrypt package to encrypt jwt tokens but since I installed the encrypt dependenc...

dart/flutter: CustomPaint updates at a lower rate than ValueNotifiers value update

I use dart FFI to retrieve data from native side, and show the data with flutter <code>CustomPaint</code>. I use <code>ValueNotifier</code> to control <code>Cus...

Flutter on Windows: how to call an external dll?

Example: I want to call <code>libffmpeg.dll</code> in flutter-windows-app. Where should I put the <code>libffmpeg</code>, make it could be packed in <code>release</cod...

How to call Flutter plugin that uses OpenCV C++ on iOS?

I am working on a Flutter plugin that uses OpenCV to perform image processing for both Android and iOS. Having followed the official tutorial on <a href="https:...

How to convert Uint8List to C equivalent datatype using dart:ffi

I am trying to send an image to my Custom C++ code which I am planning to run using dart:ffi. I have successfully run the hello world problem where I send two integers...

Flutter error when building libflutter_rust_bridge_example for Android: Failed to load dynamic library libflutter_rust_bridge_example.so

I am trying build the <a href="https://github.com/fzyzcjy/flutter_rust_bridge" rel="nofollow noreferrer">flutter_rust_bridge project</a> (frb_example/with_flutter) for...

Flutter Failed to load DLL with error code

I am trying to import a dll into my windows app and use it with ffi. I successfully generated the bindings with ffigen. But when I try to open the dll I get an...