Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributeclock

A fakeable wrapper for dart:core clock APIs.

pub.devRemove
date_and_time

Provides clean, immutable Date and Time types separately from DateTime.

pub.devRemove
ScoresHealth87 (best)45
Maintenance86 (best)5
Quality76100 (best)
Popularity95 (best)11
Community80 (best)41
Compatibility100100
UsageDownloads (30 days)17M (best)369
Likes259 (best)10
Pub points140 / 160160 / 160 (best)
GitHub stars123 (best)1
MaintenanceLatest release1.1.3, 3 months ago (best)0.0.5-alpha, 2 years ago
Major versions in 12 months00
Contributors100+ (best)1
Publishertools.dart.devchristianfindlay.com
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyYesYes
KindPure DartPure Dart
Code generationNoNo
Direct dependencies00
LicenseAPACHE-2.0BSD-3-CLAUSE
Setup effortLowLow
JudgementStrengths
  • Integrates seamlessly with the fake_async package
  • Provides a top-level clock field for default usage
  • Clean and immutable types for `Date` and `Time`.
  • Built-in zone-based time mocking support for tests.
  • Intuitive API design with UTC-first operations.
Weaknesses
  • Requires using the wrapper instead of direct dart:core DateTime calls
  • Currently in alpha stage (version 0.0.5-alpha), meaning APIs may still change.
  • Assumes local time during parsing if no timezone is explicitly provided, which can lead to mistakes if mishandled.
WarningsNoneNone
clock vs date_and_time: which Flutter package should you use? | pubscout