Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributedaylight

Calculate sunrise and sunset times for a location without using any remote API.

pub.devRemove
time_machine2

Comprehensive date and time library with support for timezones, calendars, cultures, and parsing.

pub.devRemove
ScoresHealth5059 (best)
Maintenance725 (best)
Quality9696
Popularity58 (best)26
Community6980 (best)
Compatibility100100
UsageDownloads (30 days)13k (best)3.2k
Likes49 (best)10
Pub points150 / 160150 / 160
GitHub stars64 (best)6
MaintenanceLatest release3.1.0, 3 years ago0.14.0, 9 months ago (best)
Major versions in 12 months00
Contributors611 (best)
Publisherblue-fire.xyzevoleen.com
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyYesYes
KindPure DartPure Dart
Code generationNoNo
Direct dependencies1 (best)5
LicenseMITAPACHE-2.0
Setup effortLowLow
JudgementStrengths
  • No network or platform‑specific dependencies
  • Pure Dart, works everywhere
  • Simple API and small footprint
  • Includes embedded IANA time zone database and culture rules.
  • Type-safe classes prevent mixing timestamps incorrectly.
  • Supports platforms across Flutter, Web, and Server.
Weaknesses
  • Limited to basic sunrise/sunset calculations
  • Outputs only UTC, no built‑in timezone handling
  • Accuracy depends on the algorithm’s assumptions
  • Requires manual asynchronous initialization before use.
  • API can be complex compared to native DateTime.
WarningsNoneNone
daylight vs time_machine2: which Flutter package should you use? | pubscout