BarcodeTextLocalization constructor

BarcodeTextLocalization({
  1. String cameraPermissionEnableCameraTitle = "Camera permission denied!",
  2. String cameraPermissionEnableCameraExplanation = "Please allow the usage of the camera to start the scanning process.",
  3. String cameraPermissionEnableCameraButton = "Grant permission",
  4. String cameraPermissionCloseButton = "Close",
  5. String topBarCancelButton = "Cancel",
  6. String topBarTitle = "Scan Item",
  7. String userGuidance = "Move the finder over a barcode",
  8. String barcodeInfoMappingLoadingMessage = "Loading details...",
  9. String barcodeInfoMappingErrorStateTitle = "Connection Error!",
  10. 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.",
  11. String barcodeInfoMappingErrorStateRetryButton = "Retry",
  12. String barcodeInfoMappingErrorStateCancelButton = "Cancel",
  13. String manualCountEditDialogTitle = "Update count",
  14. String manualCountEditDialogInfo = "Adjust the number of items you scanned.",
  15. String manualCountEditDialogUpdateButton = "Update",
  16. String manualCountEditDialogCancelButton = "Cancel",
  17. String sheetResetButton = "Reset",
  18. String sheetClearAllButton = "Clear all",
  19. String sheetSubmitButton = "Submit",
  20. String sheetStartScanningButton = "Start scanning",
  21. String sheetPlaceholderTitle = "No barcodes here!",
  22. String sheetPlaceholderSubtitle = "The barcode list is currently empty. Close this sheet and scan your items to add them.",
  23. String singleModeConfirmationCancelButton = "Close",
  24. String multipleModeSheetTitle = "%d items",
  25. String findAndPickSheetTitle = "%d/%d scanned",
  26. String findAndPickSheetBarcodeItemSubtitle = "%d/%d added",
  27. String findAndPickPartialAlertTitle = "Incomplete scan!",
  28. String findAndPickPartialAlertSubtitle = "Some codes are yet to be scanned. Proceed with submission anyway?",
  29. String findAndPickPartialAlertCancelButton = "Cancel",
  30. String findAndPickPartialAlertSubmitButton = "Yes, Submit",
  31. String findAndPickCompleteAlertTitle = "All codes found!",
  32. String findAndPickCompleteAlertSubtitle = "You have successfully scanned all codes. Proceed with submission?",
  33. String findAndPickCompleteAlertCancelButton = "Dismiss",
  34. String findAndPickCompleteAlertSubmitButton = "Submit",
})

Implementation

BarcodeTextLocalization({
  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.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",
});