Skip to content
pubscout

flutter_olm

2.0.0, released 2 years ago by famedly.com

Builds the native Olm library for Android and iOS to be used via dart:ffi.

WASM-readyCopyleft license
$ flutter pub add flutter_olm
Source repository

What it does

Compiles the Olm cryptographic library from source for mobile platforms and packages it as a Flutter plugin. The resulting binaries can be accessed from Dart code through FFI calls.

AI-written summary of version 2.0.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need Olm encryption in a Flutter app on Android or iOS
  • You prefer a native library compiled for the target platform rather than a pure‑Dart implementation

Skip it when

  • You target web, desktop, or other platforms not supported
  • A pure‑Dart Olm binding meets your needs

Strengths

  • Provides up‑to‑date native Olm builds
  • Supports both Android and iOS
  • Integrates with Dart FFI for high performance

Weaknesses

  • Limited to Android and iOS platforms
  • Requires native build steps and proper Gradle/CMake setup
  • AGPL‑3.0 license may be restrictive for some projects

Setup

Kind
Plugin (native code)
Effort
Medium
Code generation
No
Direct dependencies
0

Add the plugin to pubspec, run flutter pub get, ensure Android Gradle 8.4.1 and iOS CMake are configured, then load the library via dart:ffi in your code.

Alternatives

Packages that do the same job and could replace flutter_olm.