Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributeffi_leak_tracker

Tracks and detects native memory leaks in Dart FFI allocations.

pub.devRemove
jni

Provides Dart/Flutter bindings to call native Java code via JNI.

pub.devRemove
ScoresHealth8090 (best)
Maintenance6999 (best)
Quality100 (best)97
Popularity6887 (best)
Community8080
Compatibility93 (best)79
UsageDownloads (30 days)5.3M11M (best)
Likes1364 (best)
Pub points160 / 160160 / 160
GitHub stars847 (best)281
MaintenanceLatest release0.1.2, 7 months ago1.2.1, yesterday (best)
Major versions in 12 months0 (best)1
Contributors41100+ (best)
Publisherhalildurmus.devdart.dev
FitPlatformsAndroid, iOS, Windows, macOS, LinuxAndroid, Windows, Linux
WASM-readyNoNo
KindFFI (native library)Plugin (native code)
Code generationNoNo
Direct dependencies1 (best)8
LicenseBSD-3-CLAUSEBSD-3-CLAUSE
Setup effortLowMedium
JudgementStrengths
  • Zero overhead in release builds via adaptive allocators
  • Zone‑scoped tracking for isolated tests
  • Simple API with global or zone enable/disable
  • Low‑level access to Java without writing platform channel code
  • Works on Android, Windows, and Linux
  • Integrates with JNIgen for automated binding generation
Weaknesses
  • Only tracks FFI allocations, not Dart heap allocations
  • Requires Dart SDK 3.10 or newer
  • Requires native build setup and familiarity with JNI
  • Limited to platforms that support JVM (no iOS/web)
  • Potential for memory‑management bugs if misused
WarningsNone
  • Native setup
ffi_leak_tracker vs jni: which Flutter package should you use? | pubscout