why did you try to run old project on newest flutter version?
After trying two days now I am downgrading the flutter version using fvm
why not to change sdk variable in the pubspec ?
I recently had the same problem, fvm didn't work for me, I had to downgrade my flutter as well as jdk, 4 years is too long if your planning on maybe using it you better upgrade your project to latest.
I tried but there are around 150 files and I will have to update all the files
Tried that too
Yes you do if you want to use it, newer flutter version have better performance plus security, also there is a command 'dart migrate' which is deprecated in dart 3 or above but is available in later versions of dart 2, it basically upgrades your code to null safe automatically but you still have to do somethings manually. The legacy codebase I have worked with had several packages discontinued and some of them had concerning security issues which was stated in GitHub.
Can you please send me any document or something?
https://dart.dev/null-safety/migration-guide
If you actually want to upgrade it to the latest be aware that it take a long time, I suggest you start a new project and add dependency one by one to avoid dependency hell, then migrate your code.
Ok thanks a lot
Обсуждают сегодня