Google Flutter 2 supports desktop
Google announced the availability of Flutter 2. The second version of the open source framework now allows the creation of interfaces also for web apps, as well as for desktop and mobile applications. The same base code can be used for app development for five operating systems (Windows, macOS, Linux, Android and iOS) and four browsers (Chrome, Firefox, Edge and Safari).Google Flutter 2: cross-platform interfaces
Google's goal is to offer software that allows you to speed up the development of interfaces by reusing code. Thanks to the new version, Flutter becomes a portable framework as it allows you to adapt the app interface to each platform and offers the same user experience regardless of the operating system and device. Among the Flutter-based apps are Google Pay, Google One, and Stadia. Google Fuchsia will also use Flutter.The most important new feature of Flutter 2 is web support through Progressive Web Apps (PWAs) and porting of current mobile apps. The second version also improves desktop support (Canonical will use Flutter for the Ubuntu installation interface) and adds support for dual screen devices (Microsoft will use Flutter on future Surface).
The framework will also be exploited for the creation of interfaces for car infotainment systems. One of the first manufacturers will be Toyota. Flutter's cross-platform support was made possible thanks to Dart, the Google programming language that allows development for any operating system, regardless of architecture (Intel or ARM). Flutter 2 is of course free.
Source: Google
Version 2 of Google’s Flutter toolkit adds support for desktop and web apps
At an online event, Google today announced Flutter 2, the newest version of its open-source UI toolkit for building portable apps. While Flutter 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, Flutter now supports web and desktop apps out of the box. With that, Flutter users can now use the same codebase to build apps for iOS, Android, Windows, MacOS, Linux and the web.
“The big thing that justifies the major version number shift is, of course, the availability of web and desktop support,” Flutter product lead Tim Sneath told me. “And that’s just a fairly profound pivot. It’s rare for products that you suddenly have all these additional endpoints.”
He noted that because of Flutter’s open-source nature, web and desktop support had been “cooking in the open” for a while, so the addition of these endpoints isn’t a surprise. A lot of that work in getting these new platforms ready for the 2.0 release involved getting the performance up to par on these new platforms.
It’s worth noting, though, that Flutter desktop support is still behind an early-release flag in Flutter’s stable release channel and Google says developers should think of it as a “beta snapshot.” Web support, however, has transitioned from beta to stable and has become just another target for building apps with Flutter.
On the web platform, specifically, Sneath noted that the team deliberately started out with a very standard, DOM-centric approach. But while that worked fine, it also meant performance was held back by that, especially for more advanced features. Over the course of the last year or so, the team started working on what it calls Canvas Kit. This WebAssembly-based project takes the same Skia graphics engine that powers Android and Chrome itself and makes it available to web apps.
“What that’s meant is that we can now essentially bypass the core HTML — sort of the document-centric parts of the web platform — and really use the app-centric parts of the web platform without leaving [behind] things like auto-complete of text or passwords and all the things that keep the web feeling very unique,” Sneath said.
On the desktop, Google is announcing that Canonical is going all-in on Flutter and making it the default choice of all its future desktop and mobile apps.
Microsoft, too, is expanding its support for Flutter and working with Google on Windows support for Flutter. Given Microsoft’s interest in Android, that’s maybe no huge surprise, and indeed, Microsoft today is releasing contributions to the Flutter engine to help support foldable Android devices.
In total, Google notes, there are now over 15,000 packages for Flutter and Dart from companies like Amazon, Microsoft, Adobe, Huawei, Alibaba, eBay and Square.
As always, there are dozen of other smaller updates to Flutter in this update, too.
Looking ahead, Sneath noted that the Flutter team plans to spend more time on Flutter as a framework for embedded devices and other somewhat nontraditional platforms. He also noted that the team is interested in how Flutter can help power ambient computing experiences.
“As we think about the ambient computing worlds where there are these core premises behind the ambient computing aspects — things like: Can it be searched easily? Can people make money off of the apps that they build and do it in a responsible way? We’re building support for those kinds of services. Better analytics, better ads frameworks, connectivity into things like Firebase and Google Cloud, so that people can not just take advantage of Flutter but the broader ecosystem services that Google provides,” Sneath explained.
Early Stage is the premier “how-to” event for startup entrepreneurs and investors. You’ll hear firsthand how some of the most successful founders and VCs build their businesses, raise money and manage their portfolios. We’ll cover every aspect of company building: Fundraising, recruiting, sales, legal, PR, marketing and brand building. Each session also has audience participation built-in — there’s ample time included in each for audience questions and discussion.