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
flutter_gen

A code generator for your assets, fonts, and colors to eliminate string-based APIs.

pub.devRemove
ScoresHealth88 (best)87
Maintenance97 (best)80
Quality97100 (best)
Popularity7679 (best)
Community8080
Compatibility85100 (best)
UsageDownloads (30 days)16M (best)139k
Likes201.8k (best)
Pub points160 / 160160 / 160
GitHub stars2811.6k (best)
MaintenanceLatest release2.2.0, 2 weeks ago (best)5.15.0, 4 months ago
Major versions in 12 months10 (best)
Contributors100+ (best)46
Publisherdart.devwasabeef.jp
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyNoYes
KindPure DartPure Dart
Code generationYesYes
Direct dependencies3 (best)6
LicenseBSD-3-CLAUSEMIT
Setup effortMediumMedium
JudgementStrengths
  • Standardized protocol for native code bundling in Dart and Flutter.
  • Supports custom operating systems, architectures, and sanitizers.
  • Eliminates typo-prone string-based asset APIs.
  • Integrates well with popular packages like flutter_svg, lottie, and rive.
  • Supports build_runner and pub workspaces.
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.
  • Requires running code generation (build_runner) when assets change.
  • Adds a build step and dependency footprint to the project.
WarningsNoneNone
code_assets vs flutter_gen: which Flutter package should you use? | pubscout