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,
  7. MoonLabelPosition? labelPosition,
  8. Map<MoonPhaseName, String>? phaseLabels,
  9. TextStyle? labelStyle,
  10. double labelSpacing = 4.0,
})

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,
  this.labelPosition,
  this.phaseLabels,
  this.labelStyle,
  this.labelSpacing = 4.0,
})  : backgroundImageAsset = null,
      shadowRatio = 1.0,
      super(key: key);