OcrPackagingHelper class

OCR Helper for packaging.

Inheritance

Constructors

OcrPackagingHelper()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

getActionExtractingData(AppLocalizations appLocalizations) → String
Returns the "Extracting data…" button label
override
getActionExtractShortText(AppLocalizations appLocalizations) → String
Returns the "extract text" button label (short version)
override
getActionExtractText(AppLocalizations appLocalizations) → String
Returns the "extract text" button label
override
getActionLoadingPhoto(AppLocalizations appLocalizations) → String
Returns the "loading photo" button label
override
getActionLoadingPhotoDialogBody(AppLocalizations appLocalizations) → String
Returns the content of the dialog to explain the "loading photo" state
override
getActionLoadingPhotoDialogTitle(AppLocalizations appLocalizations) → String
Returns the title of the dialog to explain the "loading photo" state
override
getActionRefreshPhoto(AppLocalizations appLocalizations) → String
Returns the "refresh photo" button label
override
getAddButtonLabel(AppLocalizations appLocalizations) → String
Returns the label of the corresponding "add" button.
override
getEditableContentTitle(AppLocalizations appLocalizations) → String
Eg: list of ingredients, packaging, etc.
override
getEditEventAnalyticsTag() → AnalyticsEditEvents
Returns the enum to be used for matomo analytics.
override
getError(AppLocalizations appLocalizations) → String
Returns the error when the server product refresh failed.
override
getExtractedText(Product product, OpenFoodFactsLanguage language) → Future<String?>
Returns the text that the server OCR managed to extract from the image.
override
getIcon() → WidgetBuilder
Returns the icon to be displayed in the edit page.
override
getImageError(AppLocalizations appLocalizations) → String
Returns the error to display when the image upload + OCR failed.
override
getImageField() → ImageField
Returns the image field we try to run OCR on.
override
getImageUrl(Product product) → String?
Returns the image url of this field for this product.
override
getInstructions(AppLocalizations appLocalizations) → String
Returns instructions about the text input.
override
getLanguage() → OpenFoodFactsLanguage
inherited
getMonolingualText(Product product) → String?
override
getMultilingualTexts(Product product) → Map<OpenFoodFactsLanguage, String>?
override
getPhotoTitle(AppLocalizations appLocalizations) → String
Eg: Ingredients photo, packaging photo, etc.
override
getStamp() → BackgroundTaskDetailsStamp
Stamp to identify similar updates on the same product.
override
getTitle(AppLocalizations appLocalizations) → String
Returns the page title.
override
getType(AppLocalizations appLocalizations) → String
Returns the type of the field (eg: ingredients).
override
getUser() → User
inherited
hasAddExtraPhotoButton() → bool
Returns true if we need to put an "add extra photos" button.
override
isOwnerField(Product product, OpenFoodFactsLanguage language) → bool
Not supported yet
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setMonolingualText(Product product, String text) → void
override
setMultilingualTexts(Product product, Map<OpenFoodFactsLanguage, String> texts) → void
override
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited