所以,我使用的是 flutter 2.2.3 版本,现在无法升级。但是,我的另一个项目需要更高的SDK。我知道,有FVM。但我发现了这个:如何在同一设备上针对不同项目使用两个版本的flutter?并引用文章:https://dartcode.org/docs/quickly-switching- Between-sdk-versions/
The article said, we can quickly switch flutter version via clickable status bar after applied git worktree. But, in my VSCode, flutter version not clickable. ![enter image description here](https://i.stack.imgur.com/6R51g.png)
请问有什么建议吗?
我找到了答案:
- 使用 CMD + SHFT + P 打开工作区设置,我选择不是 JSON 版本
- 搜索“SDK”
- Add item with both of flutter version (mine: /User/me/flutter and /User/me/flutter-master)
And voila! I can choose other versions
![enter image description here](https://i.stack.imgur.com/0DaSL.png)
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)