After migrating to my new workstation I'm getting the "undefined name '...'" error on several packages among which there is intl package with the DateFormat method. Another package giving me the same issue is strings, but I can live without it.
I tried to do everything that came to my mind:
- flutter clean
- flutter upgrade (--force upgrade)
- flutter packages pub cache repair
- removing the package from pubspec.yaml and re-adding it
but nothing seems to sort things out. Both Vs Code and Android Studio complain about the package isn't used anywhere and the DateFormat method (in the same .dart file) is an undefined name.
I'm on flutter 1.9.1+hotfix.6 stable channel and to move to new workstation I simply copied everything (projects + SDK).
What am I missing here? What could I've messed up?
Thank you in advance for any advice