Running Flutter Desktop on Stable channel

Photo by Caspar Camille Rubin on Unsplash

TL;DR: Follow those steps if you want to run Flutter as a desktop application on beta or stable channels (and not only on master or dev).

At the time of writing this post, Flutter Desktop is still in Alpha and you are only allowed to enable it on master or dev channel.

In case you are using beta or stable channel, you are out of luck if you want to run your app as a MacOs/Windows/Linux app without the need of switching to more unstable channels. Or are you?

Running Flutter Desktop on any channel

  • Make sure your app compiles for Flutter desktop on master or dev channel — guide how to do it
  • Run flutter doctor while you are beta or stable channel
  • Go to Flutter’s main folder and git checkout the version that you want:
git checkout 1.22.2
  • Run flutter doctor to download the needed dependencies and make sure chat channel is unknown
  • Enable desktop configuration
flutter config --enable-linux-desktop --enable-macos-desktop --enable-windows-desktop
  • Run flutter devices to check if you can now see desktop enabled
  • Done!

Why not by default on beta and stable?

Flutter desktop is still under development and Flutter devs do not want everybody to start publishing production apps — more users ->more bugs ->more pressure.

However, if you need a desktop to check your app on different screen dimensions or run UI tests on docker containers, Flutter Desktop is pretty stable —we have been using it for 1.5 years.

--

--

--

Passionate mobile developer. One thing I like more than learning new things: sharing them

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

https://www.youtube.com/channel/UCkpQOdtdyWd-dUJaJhtvVqg

How to turn numeric digits to english words- solved!

Managed IT Services in Gwynedd #Managed #IT #Services #Gwynedd https://t.co/6y3Kr0uZ0d

05.1: Drawables, style, dan tema

How to configure an Aws EC2 (and install web-server on it)

When to use gRPC over REST

Dependency Injection and Testing in JUnit 5. Part 3

CIDR Block Basics

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
Tomek Polański

Tomek Polański

Passionate mobile developer. One thing I like more than learning new things: sharing them

More from Medium

Difference between const and final in dart

Flutter For Absolute Beginners | Get Started In Minutes

Add loading indicator toFlutter Web

How to set up a web view — Flutter