Skip to content

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

License

Notifications You must be signed in to change notification settings

helal-muneer/moon_phase_plus

 
 

Repository files navigation

moon_phase_plus

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

This plugin is the continuation of the discontinued original plugin. I merged some of my bug fixes and made some changes to my liking.

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dart 49.3%
  • HTML 21.5%
  • Ruby 12.3%
  • Kotlin 8.0%
  • Swift 5.0%
  • Objective-C 3.9%