Search code examples
flutterflutter-localizations

How can I fix Flutter_localizations error on the vscode? - Target of URI doesn't exist


I'm trying to use flutter_localizations and I followed this guide

When I save pubspec.yaml on vscode then pub get is ran.

After that vscode can't find app_localizations.dart file.

But this error messages will disappear when I reopen vscode.

Is there anyone with such a problem like me?

Thanks.

AppLocalizations Error


Solution

  • Use this command and Open command palette - command + shift + p on the vscode.

    Type Dart: Restart Analysis Server and select it.

    This error will be gone.