# flutter_liveness_check library

Flutter Liveness Check Package

A comprehensive Flutter package for face liveness detection with fully customizable UI, error handling, and advanced features.

## Features

- Real-time face detection using ML Kit
- Customizable UI themes and styling
- Advanced blur and lighting detection
- Type-safe error handling
- Localization support
- Retry logic with configurable attempts

## Usage

    import 'package:flutter_liveness_check/flutter_liveness_check.dart';

    LivenessCheckScreen(
      config: LivenessCheckConfig(
        callbacks: LivenessCheckCallbacks(
          onSuccess: () => print('Success!'),
          onError: (error) => print('Error: $error'),
        ),
      ),
    )

## Classes

AppBarConfig
  Configuration for the app bar.
BlurDebugInfo
  Debug information for blur detection analysis.
BlurDetectionResult
  Result class containing blur detection analysis.
CameraSettings
  Camera-specific configuration settings.
DashedCirclePainter
  A custom painter that draws a dashed circular border.
EnhancedQualityDetector
  A utility class for detecting image quality issues in liveness checks.
LightingDetectionResult
  Result class containing lighting quality analysis.
LivenessCheckCallbacks
  Callback functions for handling liveness check events.
LivenessCheckConfig
  Main configuration class for the liveness check screen.
LivenessCheckController
  Controller for managing liveness check camera operations.
LivenessCheckErrorInfo
  Contains detailed information about a liveness check error.
LivenessCheckMessages
  Customizable text messages for the liveness check screen.
LivenessCheckScreen
  A screen that performs real-time liveness detection using face recognition.
LivenessCheckSettings
  Behavior settings for the liveness check.
LivenessCheckTheme
  Theme configuration for visual customization of the liveness check screen.
LivenessResultScreen
  A screen that displays the result of a successful liveness check.
PermissionDialogConfig
  Configuration for the camera permission dialog.

## Enums

CircleBorderStyle
  Style options for the circular border.
LightingIssue
  Enumeration of possible lighting issues.
LivenessCheckError
  Enumeration of all possible liveness check error types.
LivenessStatus
  Status states for the liveness check.

## Extensions

LivenessCheckErrorExtension on LivenessCheckError
  Extension methods for LivenessCheckError enum.