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_runner

Generates strongly-typed Dart classes for Flutter assets, fonts, and colors to avoid string-based APIs.

pub.devRemove
ScoresHealth88 (best)87
Maintenance97 (best)80
Quality97 (best)96
Popularity7683 (best)
Community8080
Compatibility85100 (best)
UsageDownloads (30 days)16M (best)672k
Likes20329 (best)
Pub points160 / 160 (best)150 / 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)Android, iOS, Windows, macOS, Linux
WASM-readyNoNo
KindPure DartFlutter widgets
Code generationYesYes
Direct dependencies3 (best)9
LicenseBSD-3-CLAUSEMIT
Setup effortMediumLow
JudgementStrengths
  • Standardized protocol for native code bundling in Dart and Flutter.
  • Supports custom operating systems, architectures, and sanitizers.
  • Eliminates string-based asset paths and potential typos.
  • Integrates seamlessly with build_runner and pubspec.yaml configurations.
  • Supports specialized integrations like flutter_svg, rive, and lottie.
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 a code generator whenever assets are added or modified.
  • Adds build-time overhead to your project development workflow.
WarningsNoneNone
code_assets vs flutter_gen_runner: which Flutter package should you use? | pubscout