~/talk

Build your own web plugin with JS interop

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

Shows how to call real JavaScript libraries from Flutter web to mount Stripe’s PaymentElement, using the @JS annotation to declare external getters/methods, allowInterop to hand Dart callbacks to JS, and an HTML element view with registerViewFactory to render the element inside Flutter. Tests run in a browser by injecting a script tag. Covers limitations and future work: static interop / Wasm support and inline types to make JS bindings faster and safer.

AI-written summary · about

  1. 0:00Introduction and motivation
  2. 10:32JavaScript interop basics
  3. 16:24Calling Dart from JavaScript
  4. 20:56Testing JavaScript interop
  5. 27:58Real-world Stripe integration demo
  6. 34:18Future of Flutter web with Wasm
~/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.