~/talk

Enabling smooth communication between JavaScript and Dart in Flutter

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

Dart uses the package JS (v0.6.7) and static interop to move JavaScript bindings to compile time, giving type soundness, better performance and WASM compatibility; the talk shows that create.export replaces repeated allowInterop calls and auto‑exports annotated classes for cleaner JS↔Dart calls. Demos include element embedding and a synced counter/animation and a working ChatGPT integration built with a local Node+OpenAI server on :5001 (Express, OpenAI text‑davinci), Flutter web loader tweaks, and the interop flows succeed end‑to‑end.

AI-written summary · about

  1. 0:00Introduction
  2. 1:08Dart and Flutter overview
  3. 3:37Dart compiler deep dive
  4. 7:50JavaScript interoperability in Dart
  5. 10:37Static vs dynamic interop
  6. 15:36Demo: JS to Dart communication
  7. 18:26Static interop implementation
  8. 23:01Demo: Counter app with JS
  9. 25:04Demo: ChatGPT integration
  10. 34:30Live demo and conclusion
~/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.