I'm trying to use flutter_localizations and I followed this
CodePudding user response:
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.
CodePudding user response:
Usually running
flutter gen-l10n
should be enough, however sometimes I'va found myself using
flutter clean && flutter pub get dependencies && flutter packages get
To clean cache, and get the dependencies(which also generate the l10n). 95% of the time the first command should suffice