Master and Stable channel in flutter at a time

Have you ever wondered how can we have stable, master, beta, dev flutter channels at a time.

Find out detailed video in yotube channel PRO Coach.

Like this

I like to work on Flutter web also I have my daily job as flutter developer.

For web we need *master channel and for my job *stable channel.

But it sucks that I always run a command flutter channel channel_name to change channels. Because It downloads a lot of thing again also it break some things from different channel.

To overcome this frustration I downloaded two repositories of flutter, one is master and one is stable.

Also stable is required one that’s why I gave its path to system, so that if i run a flutter command from anywhere in pc it will trigger stable flutter’s repository to act.

For master I open master repository(flutter/bin) in terminal (cmd for windows) and from there I can run ./flutter to have master flutter.

Note: Update path of stable to bash_profile (environment variables for flutter) so that we can have stable everywhere.

Open path of master’s flutter repo in terminal and run flutter application by ./flutter . It is so simple

That’s it. It was the hack by which I maintained two channels at a time.

If you enjoyed this blog, let me know in the comments below how much useful this blog was to you. I’d be very grateful if you’d help it spread by emailing it to a friend or sharing it on Twitter or Facebook. Thank you!

#HappyCoding #flutter #widgets #crossplatform #tutorial #channel #viveky259 #procoach #github

**Subscribe for upcoming posts. Thanks for reading. Let me know what you think about this post.



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Vivek Yadav

Vivek Yadav

Writer , Speaker, Instructor and Flutter Dev