Closed MobiliteDev closed 3 years ago
That is normal. There is no way to work around that. That's how isolates work. You need to use either a global or a static function.
Also, I think here you don't need to include sqlite3
in your dependencies because it is already a transitive dependency from sqflite_common_ffi
. There is no harm on importing it, only watch out for the possible version conflict.
Thank you for your very quick answer
I'm trying to create a example with FFI compatible with iOS, Android, MacOS and Windows.
I followed this sample.
My Code
I'm testing on Windows and I have this error
The fact is, if I set the
void initApiForSQLiteWithSQLCipher()
to static function like thisstatic void initApiForSQLiteWithSQLCipher()
it is working, is it normal ? What is the way to work with no static function for ffiInit param ?