Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Flutter - How to switch flutter channel without downloading flutter & dart sdk every time

Currently i was trying on flutter web for which i needed to work on flutter master channel. But, then i needed to work on my other projects. On them i am working on flutter stable channel.

But, every time i switch my flutter channel using the command "flutter channel stable" or "flutter channel master", It keeps re-downloading sdk and other tools every time.

Currently, i have downloaded stable flutter sdk and stable dart sdk.

I have moved them in a "FlutterSDK" folder with two other folders "stable" & "master" in it. Both folders contains the stable flutter & dart sdk.

But, it keeps re-downloading the resources. What am i doing wrong ?

Can anyone help with this?

Thanks.

like image 500
Jay Mungara Avatar asked Dec 17 '22 13:12

Jay Mungara


1 Answers

You may have a look on Flutter FVM. This tool allows you to manage multiple channels and releases, and caches these versions locally, so you don't have to wait for a full setup every time you want to switch versions.

like image 125
Karol Lisiewicz Avatar answered Dec 20 '22 02:12

Karol Lisiewicz