Flutter: Undefined name 'AppLocalizations'. Try correcting the name to one that is defined, or defining the name

Viewed 816

Flutter Default Localizations isn't work when I use GetX Statemanagement. It show me a error like

Undefined name 'AppLocalizations'.
Try correcting the name to one that is defined, or defining the name.

enter image description here

How Can I fixed this ?

1 Answers

Please add these dependencies on pubspec.yaml

dependencies:
  flutter:
    sdk: flutter
  flutter_localizations:
    sdk: flutter
  intl: ^0.17.0

More information here

Related