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
timezone

Time zone databases and time zone aware DateTime class in Dart.

pub.devRemove
ScoresHealth5794 (best)
Maintenance993 (best)
Quality100100
Popularity5194 (best)
Community6380 (best)
Compatibility100100
UsageDownloads (30 days)16k5.3M (best)
Likes21597 (best)
Pub points160 / 160160 / 160
GitHub stars453 (best)
MaintenanceLatest release1.2.1, 2 years ago0.11.2, 6 weeks ago (best)
Major versions in 12 months00
Contributors570 (best)
Publisherwesty92.comtools.dart.dev
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyYesYes
KindPure DartPure Dart
Code generationNoNo
Direct dependencies0 (best)2
LicenseMITBSD-2-CLAUSE
Setup effortLowLow
JudgementStrengths
  • Drop-in replacement for DateTime with identical API methods
  • Enables const constructors for dates
  • Zero external dependencies
  • Includes comprehensive IANA time zone database variants (default, all, 10y).
  • TZDateTime implements the core DateTime interface for seamless drop-in usage.
Weaknesses
  • Limited scope restricted entirely to mimicking DateTime with const support
  • Getting the current timezone of the device is platform-dependent and not a goal of the package.
  • Standalone environment initialization likely will not work in a Flutter environment.
WarningsNoneNone
const_date_time vs timezone: which Flutter package should you use? | pubscout