MoonWidget constructor
const
MoonWidget({
- Key? key,
- required DateTime date,
- double size = 36,
- double pixelSize = 1.0,
- Color moonColor = Colors.amber,
- Color earthshineColor = Colors.black87,
- String? backgroundImageAsset,
- double shadowRatio = 1.0,
- MoonLabelPosition? labelPosition,
- Map<
MoonPhaseName, String> ? phaseLabels, - TextStyle? labelStyle,
- double labelSpacing = 4.0,
Implementation
const MoonWidget({
Key? key,
required this.date,
this.size = 36,
this.pixelSize = 1.0,
this.moonColor = Colors.amber,
this.earthshineColor = Colors.black87,
this.backgroundImageAsset,
this.shadowRatio = 1.0,
this.labelPosition,
this.phaseLabels,
this.labelStyle,
this.labelSpacing = 4.0,
}) : super(key: key);