MoonPhaseWidget constructor
const
MoonPhaseWidget({
- Key? key,
- required MoonPhaseInfo moonInfo,
- double size = 160,
- Color overlayColor = Colors.black,
- double overlayOpacity = 0,
- String moonAssetPath = 'assets/moon.svg',
- String? backgroundAssetPath,
- String? assetPackage = 'hijri_date',
- BoxFit fit = BoxFit.contain,
- bool usePhaseBasedIllumination = false,
- double moonScale = 0.9,
Implementation
const MoonPhaseWidget({
super.key,
required this.moonInfo,
this.size = 160,
this.overlayColor = Colors.black,
this.overlayOpacity = 0,
this.moonAssetPath = 'assets/moon.svg',
this.backgroundAssetPath,
this.assetPackage = 'hijri_date',
this.fit = BoxFit.contain,
this.usePhaseBasedIllumination = false,
this.moonScale = 0.9,
}) : assert(overlayOpacity >= 0 && overlayOpacity <= 1),
assert(moonScale > 0 && moonScale <= 1);