TextRecognitionCamera constructor
const
TextRecognitionCamera({
- Key? key,
- required String title,
- required String pattern,
- String notFoundMessage = 'No se encontró el patrón en el texto',
- String successMessage = 'Texto reconocido:',
- double width = 400,
- double height = 600,
- Color backgroundColor = Colors.white,
- Color primaryColor = Colors.blue,
- Color successColor = Colors.green,
- Color errorColor = Colors.red,
- String? initialImagePath,
- Color? textColor,
- Color? secondaryTextColor,
- Color? buttonBackgroundColor,
- Color? buttonForegroundColor,
- Color? containerBackgroundColor,
- Color? buttonAcceptForegroundColor,
- int maxImageWidth = 1920,
- int maxImageHeight = 1080,
- int imageQuality = 85,
- int maxImageDimension = 4000,
Implementation
const TextRecognitionCamera({
super.key,
required this.title,
required this.pattern,
this.notFoundMessage = 'No se encontró el patrón en el texto',
this.successMessage = 'Texto reconocido:',
this.width = 400,
this.height = 600,
this.backgroundColor = Colors.white,
this.primaryColor = Colors.blue,
this.successColor = Colors.green,
this.errorColor = Colors.red,
this.initialImagePath,
this.textColor,
this.secondaryTextColor,
this.buttonBackgroundColor,
this.buttonForegroundColor,
this.containerBackgroundColor,
this.buttonAcceptForegroundColor,
this.maxImageWidth = 1920,
this.maxImageHeight = 1080,
this.imageQuality = 85,
this.maxImageDimension = 4000,
});