Announcing Flutter 2
Google has finally announced the next generation of Flutter, Flutter 2 which is built for web, mobile, and desktop.
Flutter 2 brings major upgrades over the last generation of flutter enabling developers to build apps that are beautiful, fast, and portable for any platform.
Flutter 2 enables you to use the same codebase to deliver native apps for five major operating systems: iOS, Android, Windows, macOS, and Linux. Flutter 2 also targets the web experience on various browsers such as Chrome, Firefox, Safari, and many more.
Flutter 2 can also be embedded into cars, TVs, and smart home appliances, now providing the most extensive and portable experience to the computing world.
Flutter 2: The Goal
The Primary aim of Flutter 2 is to fundamentally shift how developers think about developing apps, by removing the platform constraint and focusing on the experience that you want to deliver.
Flutter allows you to handcraft beautiful apps where your brand and design are the superstars of the show. Flutter is very fast when it comes to compiling your source code to the machine.
The support for hot reload allows you to make changes to your app while it’s running and you can see the results immediately. Flutter is open to all, with many contributors adding to the core framework and extending it further with an ecosystem of packages.
With the launch of Flutter 2, Google has broadened the mobile framework to a portable framework, unleashing the apps to run on different platforms. There are already 150k+ apps on the Google Play Store that are built on top of Flutter.
Brands like WeChat, Sonos, Grab, Yandex Go, and many more are already using Flutter. Thousands of engineers at Google are using Dart and Flutter for building apps.
Google has already shipped some of its products that are based on Flutter including Google Stadia, Google One, and Google Nest Hub.
Flutter 2: On Web
Perhaps one of the largest announcements in Google’s Flutter 2 is production quality support for web apps.
The web platform has evolved wide enough to encompass the APIs that enable apps with hardware-accelerated 2D and 3D graphics and flexible layouts.
Flutter 2 focuses on three app scenarios in particular:
- Bringing existing mobile apps to the web platforms, enabling sharing of code for both experiences.
- Single Page Apps (SPAs) that loads once and transfer data to and from the internet services.
- Progressive Web Apps (PWAs) combine the web’s reach with the features of a desktop app.
Google is extending Flutter to offer the best of the web platform. Google has added text autofill, PWA manifests, routing, and control over the address bar URLs.
Google has also announced the beta for the Google Mobile Ads package for Flutter, a new SDK that will work with AdMob and AdManager to offer a variety of ad formats like banner ads, interstitial ads, native ads, and rewarded video ads.
Dart: The Secret sauce behind Flutter 2
Dart is Google’s programming language that is optimized for multi-platform development. Dart makes it easy to transition to supporting desktop, embedded, and web.
Dart 2.2 is available now and with the support for sound null safety. This update also includes a stable implementation of FFI, that will allow you to write high-performance code that interacts with C-based APIs.
This update also brings a new integrated developer and profiling tool and a number of performance and size improvements.
Flutter 2 is Available Now
If you haven’t used Flutter, I think you will find it to be a major upgrade for your app development process. Flutter 2 is offering an open-source toolkit that lets you build beautiful and fast apps for mobile, web, desktop, and embedded devices from a single codebase.
Flutter 2 is free and open-source.
Let us know in the comments section, what you’d like to build with Flutter 2!