~/talk

Building a package with assets

Talkat Fluttercon USA 2024 · 2024-09-19..09-20· [developer-experience]
links:none on file
slides:none on file

Experimental package support builds native and data assets via build hooks that run during flutter/dart commands, compiling C or Rust toolchains into artifacts and generating FFI bindings with ffigen; a link hook runs postcompile and uses a record-use mechanism to tree-shake unused symbols (demo removed multiply from the dynamic library) so apps bundle only used images/strings or native symbols. Works today on Linux and in Dart with experimental flags; Flutter support and cross‑OS linker fixes are ongoing.

AI-written summary · about

  1. 0:00Welcome
  2. 1:50Packages need assets
  3. 3:57Demo setup
  4. 5:48Build hooks for assets
  5. 9:04Dart tests with assets
  6. 10:10Flutter app demo
  7. 13:49Rust support via hooks
  8. 16:27Link hooks and tree shaking
  9. 19:20Usage recording
  10. 21:15Data assets
  11. 24:28Current status
  12. 26:14Future plans
  13. 27:39How to contribute
~/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.