~/talk

Native Platform Views for mobile and beyond

Talkat droidcon London 2022 · 2022-10-27..10-28· [flutter, web-platform]
slides:none on file

Builds a native camera preview embedded in Flutter using SwiftUI via UIHostingController on iOS and macOS and a Kotlin native view using the camera-view library (Camera2) on Android, controlled over method channels to take pictures and switch lenses. Renders natively at full device frame rate, outperforming the stock Flutter camera plugin. Uses Android composition modes (virtual display, hybrid, texture layer hybrid composition) and notes Flutter 3.3 bugs; macOS works from the master channel but has missing gesture pass-through, resize threading bugs and platform-view-overlays and scrolling with many views causes performance and ad-attribution issues.

AI-written summary · about

  1. 0:00Introduction and speaker
  2. 1:52Why use platform views
  3. 4:42Platform views theory 101
  4. 6:46iOS platform view flow
  5. 7:51Android platform view flow
  6. 8:54Android rendering modes
  7. 12:23Camera implementation goal
  8. 13:25iOS code implementation
  9. 14:47Swift UI integration
  10. 16:52Android virtual display
  11. 17:13Android hybrid composition
  12. 20:47Embedding full camera app
  13. 21:54Debugging Flutter plugins
  14. 23:58Camera preview demo
  15. 24:41Android camera implementation
  16. 27:55Desktop platform views
  17. 31:04Mac platform view issues
  18. 33:13Windows platform views
  19. 33:34Scrolling with platform views
  20. 35:20Future of platform views
  21. 36:24Resources and Q&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.