March 15, 2021

Google Flutter 2.0: Built For Web,Mobile & Desktop

Today It gets quite a bit closer to that goal with the announcement of Flutter 2.
While Flutter Web Development started out with a focus on mobile when it first launched two years ago, it spread its wings in recent years, and with version 2

There are a lot of exciting things happening as part of the Flutter 2 release

The latest major update brings major enhancements for mobile platforms, adds support to a desktop, and massively extends its capabilities on the web — among other things.

The big thing that the major version number shift is the availability of web and desktop support.

A lot of work with these new platforms ready for the 2.0 release involved getting the performance up to par on these new platforms

Flutter 2 will now be completely supported for website and desktop applications, which will allow using a common codebase for iOS, Android, Windows, macOS, and Linux operating systems

A major update to Google's cross-platform UI Toolkit, Flutter 2 stabilizes Web support and adds new platforms, including foldable, embedded, and desktop

with version 2, Flutter officially supports Web apps targeting Chrome, Firefox, Safari, or Edge and adds support for creating native apps for Windows, macOS, and Linux.

Along with Flutter 2, Google has released Dart 2.12, a new version of the language that to create Flutter apps

Flutter 2 includes many new and improved widgets too, for both iOS and Android.

In order to reduce the impact of backward-incompatible changes on existing codebases, Flutter 2 is launching Flutter Fix.

A major upgrade to Flutter that enables to create of beautiful, fast, and portable apps for any platform

Flutter for web

The single largest announcement in Flutter 2 is production-quality support for the web.

with version 2, Flutter supports Web apps targeting Chrome, Firefox, Safari or Edge and adds support for creating native apps for Windows, macOS, and Linux.

The framework now takes into account the target device to determine the best rendering method, such as HTML, Canvas, WebGL, or WebAssembly

  • Flutter’s web support builds on these innovations
    offering an app-centric framework
    Adding a new CanvasKit-powered rendering engine built with WebAssembly

The webAssembly-based project takes Skia graphics engine that powers Android and Chrome itself and makes it available to web apps.

Flutter 2 focuses on three specific web app scenarios:

  • progressive web apps that combine the web’s reach with the capabilities of desktop apps.
  • single page apps that load once and transmit data to and from web services, and existing Flutter mobile apps to the web that it’s bringing to the web.

Flutter for Mobile

There are dozen of other smaller updates to Flutter in this update, too

Extending the toolkit to additional platforms with Flutter 2, the availability of Dart 2.12, a Google Mobile Ads for Flutter beta and more

Google announced a beta release of a new software developer kit (SDK) called Google Mobile Ads for Flutter

This SDK functions with AdMob and AdManager to offer "a variety of ad formats."

Microsoft today is releasing contributions to the Flutter engine to help support foldable Android devices.

Broadened Flutter from a mobile framework to a portable framework, unleashing apps to run on a wide variety of different platforms with little or no change

Flutter for Desktop

Desktop support allows compiling Flutter source code to a native Windows, macOS, or Linux desktop app.

It can easily try it out without needing to switch to the Flutter beta channel

While Flutter 2.0 brings official support for desktops on Canonical’s Ubuntu Linux, it’s more interesting that support for dual-screen foldable devices, primarily the Surface Duo.