Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 543
Seong Jun Avatar asked Jan 24 '26 07:01

Seong Jun


1 Answers

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.

like image 52
Seong Jun Avatar answered Jan 25 '26 23:01

Seong Jun



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!