Skip to content
Articles
Article

solar_events: sunrise, sunset, twilight and Sun position in pure Dart

by Abdeldjalil Chougui dev.to

5 min read

"When does the Sun rise tomorrow?" sounds like a lookup, but it is a calculation with a lot of small traps. Which day do you mean when the user's local date and the UTC date differ? What do you return in Tromsø in December, when the Sun does not rise at all? Does the observer's height change the answer? And how do you know your numbers are right? Many apps need these answers: a weather screen, a …

Forum

Questions about this, or something to add?

Discuss on the forum

Report this · Wrote this? Claim it

FlutterX is supported by