~/talk

Adopting native assets for cross-platform FFI plugins

Talkat Fluttercon USA 2025 · 2025-06-25..06-26· [flutter]
links:none on file
slides:none on file

Announces that code assets (renamed from native assets) let Dart declare native functions at compile time so the toolchain links or bundles native libraries automatically, removing dynamic library.open and platform-channel glue. Uses FFI, build hooks, native_toolchain_c and ffigen to compile or fetch per-target .so/.dll/.dylib, enabling static linking, tree‑shaking of unused native code and per‑user compiler flags. Demonstrates SQLite package using dual-generated bindings (99.9% shared code) and notes the feature is experimental on main channel, not yet stable.

AI-written summary · about

  1. 0:00Native assets for FFI plugins
  2. 1:04Speaker background and motivation
  3. 6:21Goals for Dart FFI bindings
  4. 8:49Limitations of platform channels
  5. 10:12Dart FFI basics and improvements
  6. 13:00Distributing native libraries
  7. 16:51Code assets for FFI
  8. 20:20Build hooks for distribution
  9. 25:12Code assets in builds
  10. 30:29Benefits and compatibility
  11. 33:16Migrating to code assets
  12. 35:44Future of data assets
  13. 37:08Q&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.