Member-only story
Flutter version 2 is out, and it’s great!
The null checking is an excellent feature that is going to force us to remove a whole class of run time errors.
And the fact that we can now build our existing code into desktop apps is really interesting.
But, there is a bit of work in the conversion process, and we have a lot of projects that are going to need to be converted. We have done one already, and the others will happen over time. In the mean time, we need to be able to switch between Flutter v1 and Flutter v2 fairly regularly. My memory doesn’t hold onto such things very well, and so this article is simply to have those relevant commands handy for this task.
An explanation of the Flutter channels is below, but for now, here are the commands :
Switch to Flutter version 2
flutter channel beta # see "Version Solving" explanation below
flutter upgrade