TextRecognitionCamera constructor

const TextRecognitionCamera({
  1. Key? key,
  2. required String title,
  3. required String pattern,
  4. String notFoundMessage = 'No se encontró el patrón en el texto',
  5. String successMessage = 'Texto reconocido:',
  6. double width = 400,
  7. double height = 600,
  8. Color backgroundColor = Colors.white,
  9. Color primaryColor = Colors.blue,
  10. Color successColor = Colors.green,
  11. Color errorColor = Colors.red,
  12. String? initialImagePath,
  13. Color? textColor,
  14. Color? secondaryTextColor,
  15. Color? buttonBackgroundColor,
  16. Color? buttonForegroundColor,
  17. Color? containerBackgroundColor,
  18. Color? buttonAcceptForegroundColor,
  19. int maxImageWidth = 1920,
  20. int maxImageHeight = 1080,
  21. int imageQuality = 85,
  22. 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,
});