Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributeconst_date_time

A drop-in replacement for Dart's DateTime class with const constructors.

pub.devRemove
sugar

Standard library extension for date-times, timezones, collections, and monads.

pub.devRemove
ScoresHealth5768 (best)
Maintenance950 (best)
Quality100 (best)96
Popularity51 (best)49
Community63 (best)58
Compatibility100100
UsageDownloads (30 days)16k46k (best)
Likes21 (best)11
Pub points160 / 160 (best)150 / 160
GitHub stars433 (best)
MaintenanceLatest release1.2.1, 2 years ago4.0.0, 2 years ago (best)
Major versions in 12 months00
Contributors5 (best)4
Publisherwesty92.comduobase.io
FitPlatformsAll (pure Dart)Android, iOS, Web, Windows, macOS, Linux
WASM-readyYesYes
KindPure DartFFI (native library)
Code generationNoNo
Direct dependencies0 (best)3
LicenseMITMIT
Setup effortLowLow
JudgementStrengths
  • Drop-in replacement for DateTime with identical API methods
  • Enables const constructors for dates
  • Zero external dependencies
  • Synchronous platform timezone detection with TZDB identifiers
  • Low initialization cost and memory footprint through lazy loading
  • Comprehensive date-time, range, and interval types
Weaknesses
  • Limited scope restricted entirely to mimicking DateTime with const support
  • Contains breaking changes across major versions
  • Depends on platform-specific implementations that might need updates
WarningsNoneNone
const_date_time vs sugar: which Flutter package should you use? | pubscout