Skip to content

fix: resolve undefined localization getters in image_editor#337

Open
yashmanjunath-74 wants to merge 1 commit intofossasia:mainfrom
yashmanjunath-74:fix/Undefined-getters-334
Open

fix: resolve undefined localization getters in image_editor#337
yashmanjunath-74 wants to merge 1 commit intofossasia:mainfrom
yashmanjunath-74:fix/Undefined-getters-334

Conversation

@yashmanjunath-74
Copy link
Copy Markdown

Description
The image_editor.dart file is throwing compilation errors because it attempts to access localized strings that do not exist in the generated AppLocalizations class. This typically happens if the keys are missing from the .arb files or if the localization generation step hasn't been run.

Error Details

File: lib/view/image_editor.dart

Errors:
Line 606: The getter 'import' isn't defined for the type 'AppLocalizations'.
Line 650: The getter 'text' isn't defined for the type 'AppLocalizations'.

Steps to Reproduce

Open lib/view/image_editor.dart.
Observe the red linting/errors on calls to AppLocalizations.of(context)!.import and AppLocalizations.of(context)!.text.

Copy link
Copy Markdown
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry @yashmanjunath-74, you have reached your weekly rate limit of 500000 diff characters.

Please try again later or upgrade to continue using Sourcery

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants