BarcodeTextLocalization constructor

BarcodeTextLocalization({
  1. String topBarCancelButton = "Cancel",
  2. String topBarTitle = "Scan Item",
  3. String userGuidance = "Move the finder over a barcode",
  4. String barcodeInfoMappingLoadingMessage = "Loading details...",
  5. String barcodeInfoMappingErrorStateTitle = "Connection Error!",
  6. String barcodeInfoMappingErrorStateSubtitle = "There was an issue and the data requested was not fetched. You could try again or discard this result to start a new scan.",
  7. String barcodeInfoMappingErrorStateRetryButton = "Retry",
  8. String barcodeInfoMappingErrorStateCancelButton = "Cancel",
  9. String manualCountEditDialogTitle = "Update count",
  10. String manualCountEditDialogInfo = "Adjust the number of items you scanned.",
  11. String manualCountEditDialogUpdateButton = "Update",
  12. String manualCountEditDialogCancelButton = "Cancel",
  13. String sheetResetButton = "Reset",
  14. String sheetClearAllButton = "Clear all",
  15. String sheetSubmitButton = "Submit",
  16. String sheetStartScanningButton = "Start scanning",
  17. String sheetPlaceholderTitle = "No barcodes here!",
  18. String sheetPlaceholderSubtitle = "The barcode list is currently empty. Close this sheet and scan your items to add them.",
  19. String singleModeConfirmationCancelButton = "Close",
  20. String multipleModeSheetTitle = "%d items",
  21. String findAndPickSheetTitle = "%d/%d scanned",
  22. String findAndPickSheetBarcodeItemSubtitle = "%d/%d added",
  23. String findAndPickPartialAlertTitle = "Incomplete scan!",
  24. String findAndPickPartialAlertSubtitle = "Some codes are yet to be scanned. Proceed with submission anyway?",
  25. String findAndPickPartialAlertCancelButton = "Cancel",
  26. String findAndPickPartialAlertSubmitButton = "Yes, Submit",
  27. String findAndPickCompleteAlertTitle = "All codes found!",
  28. String findAndPickCompleteAlertSubtitle = "You have successfully scanned all codes. Proceed with submission?",
  29. String findAndPickCompleteAlertCancelButton = "Dismiss",
  30. String findAndPickCompleteAlertSubmitButton = "Submit",
  31. String accessibilityDescriptionCancelButton = "Cancel",
  32. String accessibilityDescriptionFlashButton = "Toggle flash",
  33. String accessibilityDescriptionZoomButton = "Toggle camera zoom",
  34. String accessibilityDescriptionFlipCameraButton = "Flip camera",
  35. String cameraPermissionEnableCameraTitle = "Camera permission denied!",
  36. String cameraPermissionEnableCameraExplanation = "Please allow the usage of the camera to start the scanning process.",
  37. String cameraPermissionEnableCameraButton = "Grant permission",
  38. String cameraPermissionCloseButton = "Close",
  39. String accessibilityDescriptionCameraPermissionEnableCameraButton = "Tap to grant camera permission",
  40. String accessibilityDescriptionCameraPermissionCloseButton = "Close screen without granting permission",
})

Implementation

BarcodeTextLocalization({
  this.topBarCancelButton = "Cancel",
  this.topBarTitle = "Scan Item",
  this.userGuidance = "Move the finder over a barcode",
  this.barcodeInfoMappingLoadingMessage = "Loading details...",
  this.barcodeInfoMappingErrorStateTitle = "Connection Error!",
  this.barcodeInfoMappingErrorStateSubtitle =
      "There was an issue and the data requested was not fetched. You could try again or discard this result to start a new scan.",
  this.barcodeInfoMappingErrorStateRetryButton = "Retry",
  this.barcodeInfoMappingErrorStateCancelButton = "Cancel",
  this.manualCountEditDialogTitle = "Update count",
  this.manualCountEditDialogInfo = "Adjust the number of items you scanned.",
  this.manualCountEditDialogUpdateButton = "Update",
  this.manualCountEditDialogCancelButton = "Cancel",
  this.sheetResetButton = "Reset",
  this.sheetClearAllButton = "Clear all",
  this.sheetSubmitButton = "Submit",
  this.sheetStartScanningButton = "Start scanning",
  this.sheetPlaceholderTitle = "No barcodes here!",
  this.sheetPlaceholderSubtitle =
      "The barcode list is currently empty. Close this sheet and scan your items to add them.",
  this.singleModeConfirmationCancelButton = "Close",
  this.multipleModeSheetTitle = "%d items",
  this.findAndPickSheetTitle = "%d/%d scanned",
  this.findAndPickSheetBarcodeItemSubtitle = "%d/%d added",
  this.findAndPickPartialAlertTitle = "Incomplete scan!",
  this.findAndPickPartialAlertSubtitle =
      "Some codes are yet to be scanned. Proceed with submission anyway?",
  this.findAndPickPartialAlertCancelButton = "Cancel",
  this.findAndPickPartialAlertSubmitButton = "Yes, Submit",
  this.findAndPickCompleteAlertTitle = "All codes found!",
  this.findAndPickCompleteAlertSubtitle =
      "You have successfully scanned all codes. Proceed with submission?",
  this.findAndPickCompleteAlertCancelButton = "Dismiss",
  this.findAndPickCompleteAlertSubmitButton = "Submit",
  this.accessibilityDescriptionCancelButton = "Cancel",
  this.accessibilityDescriptionFlashButton = "Toggle flash",
  this.accessibilityDescriptionZoomButton = "Toggle camera zoom",
  this.accessibilityDescriptionFlipCameraButton = "Flip camera",
  this.cameraPermissionEnableCameraTitle = "Camera permission denied!",
  this.cameraPermissionEnableCameraExplanation =
      "Please allow the usage of the camera to start the scanning process.",
  this.cameraPermissionEnableCameraButton = "Grant permission",
  this.cameraPermissionCloseButton = "Close",
  this.accessibilityDescriptionCameraPermissionEnableCameraButton =
      "Tap to grant camera permission",
  this.accessibilityDescriptionCameraPermissionCloseButton =
      "Close screen without granting permission",
});