Writing a Flutter and Dart FFI plugin? Never fear, the Realm Team is here.
summary
Realm Flutter uses a C++ core exposed via a C API and an FFI plugin that downloads prebuilt native libraries from a CDN at build time using a bundled dart run install command, avoiding pub.dev’s 100 MB package limit; bindings are generated with ffigen so developers don’t hand-write hundreds of signatures, build hooks plug into CMake/Gradle/Podspec to fetch platform DLLs/XCFrameworks, runtime loads platform-specific names and paths, and calling Dart from native uses Pointer.fromFunction or raw receive ports while the upcoming native assets feature standardizes download and loading.
AI-written summary · about
chapters (15)
- 0:00Introduction to FFI plugins
- 2:12What is Realm database
- 4:37Understanding Dart FFI basics
- 6:22Using ffigen for bindings
- 7:45Creating FFI plugins in Flutter
- 8:27Distributing native binaries
- 10:33Downloading pre-built binaries
- 11:36Integrating with build systems
- 13:19Android build integration
- 14:03iOS and macOS build setup
- 15:07Dart standalone apps limitations
- 15:50Loading plugins at runtime
- 16:34Future of FFI with native assets
- 18:20Calling Dart from native code
- 20:48Closing and resources
related talks
47mFlutter, FFI and Fun: Windows Development with Dart and Win32
32mHow Flutter Stays Ahead of iOS Releases
42mFlutter everywhere — from Mobile to Web
20mInternationalization (and not only)
56mJoin The Dart Side Of Web Development 2
13mLearn how Flutter enhances web apps
22mInnovation and Trends in Flutter for web
40mMastering Flutter Web
