SmartfaceTransparentEllipseOverlay constructor

SmartfaceTransparentEllipseOverlay({
  1. Key? key,
  2. Color overlayColor = const Color.fromRGBO(0, 0, 0, 0.6),
  3. Color borderColorActive = const Color(0xFF00FF00),
  4. Color borderColorDefault = const Color(0xFF606F7B),
  5. double borderWidth = 4.0,
  6. double ellipseWidthRatio = 0.65,
  7. double ellipseHeightRatio = 0.45,
  8. double? ellipseTopMarginRatio,
  9. int defaultAbsHeight = 250,
  10. double logoDistance = 64.0,
  11. void onRectInsideEllipseChanged(
    1. 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,
});