moon_phase 1.0.0+4 copy "moon_phase: ^1.0.0+4" to clipboard
moon_phase: ^1.0.0+4 copied to clipboard

outdated

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 display.

        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,
          scale: 0.2,
          moonColor: Colors.amber,
          earthshineColor: Colors.blueGrey.shade900,
        ),

date

  • DateTime to show.
    Hour, 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

  • Decide the container size for the MoonWidget

scale

  • Transform the size. 1.0 is resolution(=radius) x 2.

moonColor

  • Color of light side of the moon

earthshineColor

  • Color of dark side of the moon.
18
likes
0
pub points
70%
popularity

Publisher

unverified uploader

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

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, flutter_web_plugins

More

Packages that depend on moon_phase