Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributeamdjs

Dart package to load JavaScript libraries that use AMD (RequireJS) in web apps.

pub.devRemove
structured_async

Structured asynchronous programming and cancellable futures for Dart.

pub.devRemove
ScoresHealth64 (best)39
Maintenance78 (best)0
Quality100 (best)96
Popularity22 (best)17
Community66
Compatibility100100
UsageDownloads (30 days)2.7k (best)409
Likes815 (best)
Pub points160 / 160 (best)150 / 160
GitHub stars317 (best)
MaintenanceLatest release3.0.0, 6 weeks ago (best)0.3.2, 4 years ago
Major versions in 12 months00
Contributors11
PublisherUnverifiedUnverified
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyYesYes
KindPure DartPure Dart
Code generationNoNo
Direct dependencies10 (best)
LicenseBSD-3-CLAUSEAPACHE-2.0
Setup effortLowLow
JudgementStrengths
  • Handles both native AMD and fallback script injection.
  • Supports async loading and global variable exposure.
  • Fully null‑safe and uses dart:js_interop.
  • Well tested with integration tests against RequireJS.
  • Automatically cancels pending timers and futures when a CancellableFuture completes.
  • Propagates errors from unawaited child computations to the caller.
  • Provides group and stream helpers for managing multiple async operations easily.
Weaknesses
  • Only works on web; no support for mobile or desktop Flutter.
  • Requires manual script paths or package names; not a code generator.
  • Completed futures and timers inside a cancelled scope will briefly awaken before terminating.
  • Isolates spawned inside a CancellableFuture do not terminate automatically without manual cleanup callbacks.
WarningsNoneNone
amdjs vs structured_async: which Flutter package should you use? | pubscout