Upgrade to the Flutter 3.0

The Flutter 3.0 was released on May 2022. In this version, it supports macOS Native Desktop apps development officially. I am a Mac App Developer, so I interested in it. First, I upgraded the installed flutter in my mac.

TOC

Check the installed environment

Check the version of installed Flutter. Run as following in terminal.

% flutter --version
Flutter 2.10.5 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 5464c5bac7 (3 weeks ago) • 2022-04-18 09:55:37 -0700
Engine • revision 57d3bac3dd
Tools • Dart 2.16.2 • DevTools 2.9.2

In the above example, the version 2.10.5 is installed.

How to upgrade the Flutter

It is easy to upgrade the Flutter. Simply run flutter upgrade as follows.

% flutter upgrade

It downloads and installs the latest version of Flutter, at last, it runs doctor to check your system. If the process was successed, then print the line as follows.

• No issues found!

Check the version after upgraded

The version was printed while upgrading, but you can run flutter --version to check it.

% flutter --version
Flutter 3.0.0 • channel stable • https://github.com/flutter/flutter.git
Framework • revision ee4e09cce0 (2 days ago) • 2022-05-09 16:45:18 -0700
Engine • revision d1b9a6938a
Tools • Dart 2.17.0 • DevTools 2.12.2

In above example, the version 3.0.0 of the flutter was installed.

About New Installation

I wrote about the new installation in the following article.

About Mac Desktop Apps

The Flutter 3.0 supports the Mac Desktop Apps Development officially.

Create the macOS native menu bar

When you create the macOS apps with a cross platform suppting framework, the menubar may be bad, such as unlike native apps. For example, the menubar is appeared in the top of the window like Windows.

With the Flutter 3.0, you can create the native macOS menubar like the AppKit apps.

I wrote about it in the following article.

How to build the Flutter macOS Apps

I wrote how to build the macOS Apps using Flutter in the following article. I also write the runtime size that I checked.

Let's share this post !

Author of this article

Akira Hayashiのアバター Akira Hayashi Representative, Software Engineer

I am an application developer loves programming. This blog is a tech blog, its articles are learning notes. In my work, I mainly focus on desktop and mobile application development, but I also write technical books and teach seminars. The websites of my work and books are here -> RK Kaihatsu.

TOC