Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributecode_assets

Provides the hook protocol specification for bundling native code with Dart packages.

pub.devRemove
swiftgen

A tool for generating bindings that allow interop between Dart and Swift code.

pub.devRemove
ScoresHealth88 (best)78
Maintenance97 (best)84
Quality97 (best)96
Popularity76 (best)34
Community8080
Compatibility85100 (best)
UsageDownloads (30 days)16M (best)12k
Likes20 (best)11
Pub points160 / 160 (best)150 / 160
GitHub stars281 (best)280
MaintenanceLatest release2.2.0, 2 weeks ago (best)0.2.0, 2 months ago
Major versions in 12 months10 (best)
Contributors100+100+
Publisherdart.devlabs.dart.dev
FitPlatformsAll (pure Dart)Android, iOS, Windows, macOS, Linux
WASM-readyNoNo
KindPure DartFFI (native library)
Code generationYesNo
Direct dependencies3 (best)7
LicenseBSD-3-CLAUSEBSD-3-CLAUSE
Setup effortMediumMedium
JudgementStrengths
  • Standardized protocol for native code bundling in Dart and Flutter.
  • Supports custom operating systems, architectures, and sanitizers.
  • Automates generating bindings between Dart and Swift
  • Integrates with ffigen and swift2objc
Weaknesses
  • Breaking changes can occur with custom target representations in maps and sets (e.g., v2.0.0 update).
  • Requires understanding native build hooks and toolchains.
  • Experimental tool
  • Not documented thoroughly beyond basic description
WarningsNoneNone
code_assets vs swiftgen: which Flutter package should you use? | pubscout