moon_phase 1.0.1+8 copy "moon_phase: ^1.0.1+8" to clipboard
moon_phase: ^1.0.1+8 copied to clipboard

Flutter plugin that creates moon widgets according to the moon's phase.

moon_phase #

Flutter plugin that creates moon widgets according to the moon's phase.

Getting Started #

Just add the MoonWidget and put in every single DateTime you want see. Then, the phase of the moon will be displayed.

  MoonWidget(
    date: DateTime.now(),
  ),

This is the example app that shows the shape of the moon every 12 hours for 30 days.

example app

Yes, this is cool!

Learn More #

  MoonWidget(
    date: DateTime.now(),
    resolution: 128,
    size: 64,
    moonColor: Colors.amber,
    earthshineColor: Colors.blueGrey.shade900,
  ),

date

  • DateTime to show.
    Hours, minutes, and seconds are calculated for MoonWidget.

resolution

  • Resolution will be the moon radius.
    Large resolution needs more math operation makes widget heavy.
    Enter a small number if it is sufficient to mark it small,
    such as an icon or marker.

size

  • Set size for the MoonWidget

moonColor

  • Color of light side of the moon

earthshineColor

  • Color of dark side.

About #

17
likes
130
pub points
72%
popularity

Publisher

unverified uploader

Flutter plugin that creates moon widgets according to the moon's phase.

Repository (GitHub)
View/report issues

Documentation

API reference

License

GPL-3.0 (LICENSE)

Dependencies

flutter, flutter_web_plugins

More

Packages that depend on moon_phase