MoonWidget.simple constructor

const MoonWidget.simple({
  1. Key? key,
  2. required DateTime date,
  3. double size = 36,
  4. double pixelSize = 1.0,
  5. Color moonColor = Colors.amber,
  6. Color earthshineColor = Colors.black87,
})

Simple moon with solid colors

Implementation

const MoonWidget.simple({
  Key? key,
  required this.date,
  this.size = 36,
  this.pixelSize = 1.0,
  this.moonColor = Colors.amber,
  this.earthshineColor = Colors.black87,
})  : backgroundImageAsset = null,
      shadowRatio = 1.0,
      super(key: key);