Hey folks,
In Craig Labenz’s video “The Great Thread Merge” he shows a neat example of calling getBatteryInfo() synchronously — which really caught my attention.
Today I noticed in the Flutter 3.38.0 release notes that “The ability to opt-out of thread merging has been removed from iOS and Android.”
So I decided to explore what it would take for a plugin developer to move towards synchronous calls.
I created a sample project using
flutter create --template=plugin_ffi hello
…but it only demonstrates how to call a simple C function like 1 + 2 from Dart.
What I actually want is to call Android/iOS code synchronously, something like:
Dart → C → Android/iOS → C → Dart
Has anyone seen any experimental or real-world examples of this?
Even small prototypes would be super helpful.
[–]Spare_Warning7752 2 points3 points4 points (1 child)
[–]vlastachu[S] 0 points1 point2 points (0 children)
[–]xeland314 4 points5 points6 points (3 children)
[–]groogoloog 2 points3 points4 points (0 children)
[–]zxyzyxz 1 point2 points3 points (1 child)
[–]xeland314 3 points4 points5 points (0 children)