~/talk

Adding WebView to your Flutter app

Talkat Google I/O 2022 · 2022-05-11..05-12· [flutter, web-platform]
slides:none on file

Adds the webview to a Flutter app using the webview_flutter plugin and shows a working Scaffold with a WebView widget, a WebViewController accessed via a Completer, and navigation controls that actually call canGoBack/canGoForward/reload. Demonstrates a navigationDelegate that blocks YouTube, runs JavaScript (navigator.userAgent), receives messages via JavaScript channels to postSnackBar, manages cookies with CookieManager, and loads assets or HTML strings with loadFlutterAsset/loadHtmlString — all examples run on Android/iOS emulators.

AI-written summary · about

  1. 0:00Introduction and setup
  2. 2:00Creating the project
  3. 4:42Adding the webview widget
  4. 7:05Handling page load events
  5. 10:38Webview controller basics
  6. 13:34Navigation controls
  7. 17:39Navigation delegates
  8. 22:07Executing JavaScript
  9. 24:48JavaScript channels
  10. 28:47Managing cookies
  11. 34:09Loading local assets
  12. 42:01Conclusion
~/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.