SmartfaceTransparentEllipseOverlay constructor
SmartfaceTransparentEllipseOverlay({
- Key? key,
- Color overlayColor = const Color.fromRGBO(0, 0, 0, 0.6),
- Color borderColorActive = const Color(0xFF00FF00),
- Color borderColorDefault = const Color(0xFF606F7B),
- double borderWidth = 4.0,
- double ellipseWidthRatio = 0.65,
- double ellipseHeightRatio = 0.45,
- double? ellipseTopMarginRatio,
- int defaultAbsHeight = 250,
- Widget? bottomLogo,
- double logoDistance = 64.0,
- void onRectInsideEllipseChanged(
- bool isInside
Implementation
SmartfaceTransparentEllipseOverlay({
super.key,
this.overlayColor = const Color.fromRGBO(0, 0, 0, 0.6),
this.borderColorActive = const Color(0xFF00FF00), // Green
this.borderColorDefault = const Color(0xFF606F7B), // Gray
this.borderWidth = 4.0,
this.ellipseWidthRatio = 0.65,
this.ellipseHeightRatio = 0.45,
this.ellipseTopMarginRatio, // Now nullable - defaults to auto-center
this.defaultAbsHeight = 250,
this.bottomLogo,
this.logoDistance = 64.0,
this.onRectInsideEllipseChanged,
});