The World of Dart-Only Plugins
summary
Claims that full Dart-only plugins work by generating FFI/JNI bindings and loading OS dynamic libraries at runtime, demonstrated by a federated plugin that implements clipboard copy/paste on Windows (using windows_32 bindings) and macOS (generated AppKit bindings via ffi_gen), and that the code runs on both platforms. Shows memory- and thread-safety tradeoffs: Windows requires manual memory locking for the clipboard, macOS APIs need main-thread calls, and App Store handling of runtime dylibs is unclear, so not yet drop-in production for all cases.
AI-written summary · about
chapters (11)
- 0:00Introduction and speaker intro
- 1:49Traditional plugin limitations
- 2:33Flutter app structure overview
- 5:45Dart-only plugins concept
- 8:13Clipboard example setup
- 9:15Windows clipboard implementation
- 10:44macOS clipboard implementation
- 12:30Generating Objective-C bindings
- 13:35Drawbacks and limitations
- 15:42Android JNI bindings
- 16:14Q&A session begins
