Skip to content

Undefined getters 'import' and 'text' in AppLocalizations #334

@yashmanjunath-74

Description

@yashmanjunath-74

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions