flutter_otp_kit library

A comprehensive Flutter package for OTP (One-Time Password) verification with customizable styling, localization support, and robust functionality.

Classes

BiometricCancelledEvent
Biometric cancelled event
BiometricErrorEvent
Biometric error event
BiometricEvent
Biometric event types
BiometricInitializedEvent
Biometric initialized event
BiometricSuccessEvent
Biometric success event
FieldColors
Represents the colors for an OTP field based on its state
OtpAnimationConfig
Configuration for OTP animations Configuration for OTP animations
OtpBehaviorConfig
Behavior configuration for OTP widget
OtpBiometricService
Service for biometric authentication integration
OtpConfig
Main configuration for OTP verification widget
OtpErrorConfig
Configuration for OTP error state behavior
OtpErrorDisplay
Widget for displaying OTP error messages with animation and styling options
OtpField
A single OTP input field with customizable styling and behavior
OtpFieldConfig
Configuration for OTP field appearance and behavior
OtpFieldShapeConfig
Class for custom field shape configuration
OtpFieldsRow
A row of OTP input fields
OtpFooter
Footer widget for OTP verification widget
OtpFormatter
Utility class for formatting OTP input
OtpGradientConfig
Configuration for gradient background
OtpHeader
Header widget for OTP verification widget
OtpKit
🎯 BRAND NEW OTP KIT - Complete rewrite from scratch
OtpMasker
Utility class for masking contact information
OtpPerformanceConfig
Configuration for performance optimizations
OtpPerformanceMonitor
Performance monitoring service for OTP Kit
OtpPlatformService
Platform-specific features and optimizations
OtpSecurityConfig
Configuration for security and advanced validation features
OtpSmsConfig
Configuration for SMS autofill features
OtpSmsService
Service for handling SMS autofill functionality
OtpStyleManager
Manages styling for OTP fields
OtpValidator
Utility class for validating OTP input
OtpVerificationWidget
🎯 EASY-TO-USE OTP VERIFICATION WIDGET
OtpVerificationWidgetState
PerformanceMetrics
Performance metrics data class
PlatformConfig
Platform-specific configuration
PlatformUtils
Platform utilities that work across all platforms including WASM

Enums

BiometricType
Biometric type enumeration
CompletedEffect
Type of effect for completed fields
CursorAlignment
Enum for cursor alignment within OTP fields
CursorStyle
Cursor/caret visual styles
ErrorAlignment
Alignment of the error message
ErrorAnimationType
Type of animation for the error message
ErrorConfigPreset
Preset configurations for error handling
ErrorFieldAnimationType
Animation types applied when a field enters error state
ErrorHapticFeedbackType
Type of haptic feedback for errors
ErrorStateBehavior
Enum for error state behavior
ErrorStatePriority
Enum for error state priority
FieldFillAnimationType
Animation types applied when a field transitions to filled/completed
FieldStatePriority
Enum for field state priority
FocusEffect
Type of focus effect for OTP fields
GradientPreset
Preset gradients
GradientType
Type of gradient
HapticFeedbackType
Type of haptic feedback
MaskingType
Enum for different types of contact information masking
OtpBorderStyle
Enum for border styles
OtpFieldAlignment
Enum for field alignment within layout
OtpFieldDirection
Enum for field arrangement direction
OtpFieldPreset
Preset configurations for OTP fields
OtpFieldShape
Enum for different OTP field shapes
OtpFieldState
Represents the state of an OTP field
OtpInputType
Enum for different types of OTP input
OtpLayoutType
Enum for different OTP field layout types

Extensions

OtpSmsServiceExtension on OtpSmsService
Extension methods for easier SMS service usage

Typedefs

AnimationPerformanceCallback = void Function(double fps)
AuditLogCallback = void Function(String action, Map<String, dynamic> details)
BiometricCallback = Future<bool> Function()
MemoryUsageCallback = void Function(int memoryUsage)
PerformanceMetricsCallback = void Function(Map<String, dynamic> metrics)
Performance monitoring callback types
RateLimitCallback = void Function(int attempts, Duration remaining)
SecurityEventCallback = void Function(String event, Map<String, dynamic> data)
Security callback types
SmsErrorCallback = void Function(String error)
SmsReceivedCallback = void Function(String smsCode)
SMS autofill callback types
SmsTimeoutCallback = void Function()
SmsValidationCallback = bool Function(String smsCode)