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