SignatureField constructor
const
SignatureField({
- Key? key,
- String? label,
- SignatureData? value,
- ValueChanged<
SignatureData?> ? onChanged, - FormFieldValidator<
SignatureData> ? validator, - InputDecoration? decoration,
- SignatureConfig config = const SignatureConfig(),
- double height = 200.0,
- double? width,
- BorderRadius? borderRadius,
- Border? border,
- SignatureType signatureType = SignatureType.handwritten,
- AuthenticationLevel authLevel = AuthenticationLevel.basic,
- bool showClearButton = true,
- bool showSaveButton = false,
- bool showUndoRedoButtons = true,
- bool enableZoom = false,
- bool enableFullScreen = true,
- bool enableRotation = false,
- bool enableResize = false,
- String? clearButtonText,
- String? saveButtonText,
- String? undoButtonText,
- String? redoButtonText,
- bool enableImageExport = true,
- bool enablePdfExport = false,
- bool enableSvgExport = false,
- bool enableBiometricExport = false,
- double exportScale = 2.0,
- List<
ExportFormat> supportedFormats = const [ExportFormat.png], - bool enableBiometricCapture = false,
- bool enableStrokeAnalysis = false,
- bool enableTimingAnalysis = false,
- bool enablePressureAnalysis = false,
- bool enableVelocityAnalysis = false,
- bool enableDigitalSigning = false,
- bool enableEncryption = false,
- bool enableWatermark = false,
- bool enableIntegrityCheck = false,
- String? certificatePath,
- String? privateKeyPath,
- Color? backgroundColor,
- Color? borderColor,
- Widget? placeholder,
- TextStyle? labelStyle,
- EdgeInsets? padding,
- bool showSignatureInfo = false,
- bool showBiometricInfo = false,
- bool enableGestures = true,
- bool enableVelocityBasedWidth = false,
- bool enableMultiTouch = false,
- bool enablePalmRejection = false,
- bool enableAutoSmoothing = true,
- bool enableStrokeRecognition = false,
- bool enableRealTimeSync = false,
- bool enableVersionControl = false,
- bool enableComments = false,
- bool enableSharing = false,
- dynamic onCommentAdded(
- SignatureData signature,
- String comment
- bool enableAnalytics = false,
- bool enablePerformanceMonitoring = false,
- dynamic onAnalyticsEvent()?,
- int? minStrokeCount,
- double? minSignatureWidth,
- double? minSignatureHeight,
- double? minComplexityScore,
- Duration? maxSigningTime,
- Duration? minSigningTime,
- dynamic onSignatureStart(
- SignatureData signature
- dynamic onSignatureEnd(
- SignatureData signature
- dynamic onError(
- String error
- dynamic onBiometricsCaptured(
- BiometricProperties biometrics
- dynamic onDigitalSigningComplete(
- SignatureData signature
Implementation
const SignatureField({
Key? key,
// Basic Configuration
this.label,
this.value,
this.onChanged,
this.validator,
this.decoration,
// Advanced Signature Configuration
this.config = const SignatureConfig(),
this.height = 200.0,
this.width,
this.borderRadius,
this.border,
this.signatureType = SignatureType.handwritten,
this.authLevel = AuthenticationLevel.basic,
// Enhanced Features
this.showClearButton = true,
this.showSaveButton = false,
this.showUndoRedoButtons = true,
this.enableZoom = false,
this.enableFullScreen = true,
this.enableRotation = false,
this.enableResize = false,
this.clearButtonText,
this.saveButtonText,
this.undoButtonText,
this.redoButtonText,
// Advanced Export Options
this.enableImageExport = true,
this.enablePdfExport = false,
this.enableSvgExport = false,
this.enableBiometricExport = false,
this.exportScale = 2.0,
this.supportedFormats = const [ExportFormat.png],
// Biometric Features
this.enableBiometricCapture = false,
this.enableStrokeAnalysis = false,
this.enableTimingAnalysis = false,
this.enablePressureAnalysis = false,
this.enableVelocityAnalysis = false,
// Security Features
this.enableDigitalSigning = false,
this.enableEncryption = false,
this.enableWatermark = false,
this.enableIntegrityCheck = false,
this.certificatePath,
this.privateKeyPath,
// UI Customization
this.backgroundColor,
this.borderColor,
this.placeholder,
this.labelStyle,
this.padding,
this.showSignatureInfo = false,
this.showBiometricInfo = false,
// Advanced Drawing Features
this.enableGestures = true,
this.enableVelocityBasedWidth = false,
this.enableMultiTouch = false,
this.enablePalmRejection = false,
this.enableAutoSmoothing = true,
this.enableStrokeRecognition = false,
// Collaboration Features
this.enableRealTimeSync = false,
this.enableVersionControl = false,
this.enableComments = false,
this.enableSharing = false,
this.onCommentAdded,
// Analytics & Monitoring
this.enableAnalytics = false,
this.enablePerformanceMonitoring = false,
this.onAnalyticsEvent,
// Validation & Constraints
this.minStrokeCount,
this.minSignatureWidth,
this.minSignatureHeight,
this.minComplexityScore,
this.maxSigningTime,
this.minSigningTime,
// Callbacks
this.onSignatureStart,
this.onSignatureEnd,
this.onError,
this.onBiometricsCaptured,
this.onDigitalSigningComplete,
}) : super(key: key);