~/talk

Comparing ways of accessing native functionality

Talkat Fluttercon Europe 2023 · 2023-07-05..07-07· [flutter]
links:none on file
slides:none on file

An app called Posture Pal reads AirPods motion sensors via CMHeadphoneMotionManager to count push‑ups and streams attitude quaternions every 10 ms, proving native access works. Two approaches get shown: method/event channels (JSON over an event stream) and FFI gen which generates long Objective‑C bindings from one config file. Setup costs around 2 hours, output can be awkward (multiple generated constructors) and Obj‑C/Swift support is experimental, but FFI gen scales well for many APIs and enables direct Dart calls.

AI-written summary · about

  1. 0:00Introduction
  2. 0:45Motivation and use case
  3. 2:29Demo with push-ups
  4. 3:52Method and event channels
  5. 7:03Introducing FFI gen
  6. 8:07FFI gen setup and demo
  7. 10:58Dart vs Swift comparison
  8. 12:01Downsides of FFI gen
  9. 13:45Benefits of FFI gen
  10. 14:27Conclusion and Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.