Announcing Flutter 2.2 at Google I/O 2021
Tags: programming, flutter, google, news
Published: 2021-05-19 10:57:40

At Google I/O today, we announced  <a rel="nofollow" href="https://flutter.dev/docs/whats-new">Flutter 2.2</a>, our latest release of the open-source toolkit for building beautiful apps for any device from a single platform. Flutter 2.2 is the best version of Flutter yet, with updates that make it easier than ever for developers to monetize their apps through in-app purchases, payments, and ads; to connect to cloud services and APIs that extend apps to support new capabilities; and with tooling and language features that allow developers to eliminate a whole class of errors, increase app performance and reduce package size.

## Building on the foundation of Flutter 2

Flutter 2.2 is built on the foundation of Flutter 2, which extended Flutter from its mobile roots to incorporate web, desktop, and embedded usage. It is uniquely designed for a world of ambient computing, where users have a wide variety of different devices and form factors and are looking for consistent experiences that span across their daily lives. With Flutter 2.2, enterprises, startups, and entrepreneurs alike can build high-quality solutions that can reach the full potential of their addressable market, allowing creative inspiration (rather than the target platform) to be the only limiting factor.

## Flutter is now the most popular framework for cross-platform development.

A recent mobile developer study highlights the growth of Flutter. Analyst firm <a rel="nofollow" href="https://www.slashdata.co/">SlashData’s</a> <a rel="nofollow" href="https://www.slashdata.co/reports/?category=mobile-desktop">Mobile Developer Population Forecast 2021</a> shows that Flutter is now the most popular framework for cross-platform development, with 45% of developers selecting it, representing 47% growth between Q1 2020 and Q1 2021. Our own data confirms this shift towards Flutter; in the last 30 days, more than one in eight of the new apps in the Play Store are built with Flutter.

At I/O, we shared that there are now over 200,000 apps in the Play Store alone built using Flutter. These apps come from companies like Tencent, whose WeChat messaging app is used by over 1.2 billion users on iOS and Android; ByteDance, originators of TikTok, who have now built 70 distinct apps using Flutter; and other apps from companies including BMW, SHEIN, Grab and DiDi. Of course, Flutter isn’t just used by large corporations. Some of the most innovative apps are coming from names you might not have heard of: for example, Wombo, the viral singing selfie app; Fastly, the intermittent fasting app, and Kite, a beautiful investment trading app.

## Introducing Flutter 2.2

The Flutter 2.2 release is focused on improvements to the development experience to help you deliver more reliable, performant apps to your customers.

Sound null safety is now the default for new projects. Null safety adds protection against null reference exceptions, giving developers the means to express non-nullable types in their code. And since Dart’s implementation is sound, the compiler can eliminate null checks at runtime, providing increased performance for your apps. The ecosystem has responded quickly, with around 5,000 packages already updated to support null safety.

There are lots of performance improvements in this release also: for web apps, we offer background caching using service workers; for Android apps, Flutter supports deferred components; for iOS, we’ve been working on tooling to precompile shaders to eliminate or reduce first-run jank. We’ve also added a number of new features to the DevTools suite that help you understand how memory is allocated in your apps, as well as support for third-party tools extensions.

Additionally, we’ve been working on a few important areas of polish, such as improved accessibility for web targets.

Our work extends beyond the core of Flutter. We’ve also been partnering with other Google teams to help integrate Flutter into our broader developer stack. In particular, we continue to build trusted services that help developers responsibly monetize their apps. Our <a rel="nofollow" href="https://developers.google.com/admob/flutter/quick-start">new ads SDK</a> is updated in this release with null safety and support for adaptive banner formats. We’re also introducing a <a rel="nofollow" href="http://pub.dev/packages/pay">new payment plugin</a>, built in partnership with the Google Pay team, that lets you take payment for physical goods on both iOS and Android. And we have updated our <a rel="nofollow"  href="https://pub.dev/packages/in_app_purchase">in-app purchases plugin</a>, along with a matching <a rel="nofollow" href="https://codelabs.developers.google.com/codelabs/flutter-in-app-purchases">codelab</a>.

As the “secret sauce” that powers Flutter, <a rel="nofollow"  href="https://dart.dev/">Dart</a> also gets an update in this release. Dart 2.13 expands support for native interoperability, with support for arrays and packed structs in FFI. It also includes support for type aliases, which increase readability and provide a gentle pathway for certain refactoring scenarios. We continue to add integrations for the broader ecosystem, with a Dart <a rel="nofollow" href="https://github.com/marketplace/actions/setup-dart-sdk">GitHub Action</a> and a curated Docker Official Image that is optimized for cloud-based deployment of business logic.

## More than a Google project

While Google continues to be the primary contributor to the Flutter project, we’re delighted to see the growth of the broader ecosystem around Flutter.

![1 zroRqBB-vjUR_UCvYCKSUg.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1621420383162/qAwYz_xX1.png)

One area of particular growth over recent months has been the broadening of Flutter to an ever growing number of platforms and operating systems. At Flutter Engage, we announced that Toyota is bringing Flutter to their next generation vehicle infotainment systems. And last month, Canonical shipped their first release of Ubuntu with integrated support for Flutter, with Snap integration and support for Wayland.

Two new partners demonstrate this ever-growing ecosystem. Samsung is porting Flutter to Tizen, with an open source repository that others can also contribute to. And Sony is leading the effort to deliver a solution for embedded Linux.

Designers benefit also from the open source nature of this project, with the announcement from Adobe of its updated XD to Flutter plugin. Adobe XD provides designers a great way to experiment and iterate, and now with enhanced Flutter support, designers and developers can collaborate on the same assets, putting great ideas into production faster than ever.

Lastly, Microsoft continues to collaborate with us; besides the work the Surface team has been doing to build foldable experiences with Flutter, this week sees the alpha of Flutter support for UWP apps built for Windows 10. We’re excited to see more apps that take advantage of the platform adaptations built into Flutter to provide a great experience across mobile, desktop, web and beyond.

## Building Great Experiences

More than anything, we built Flutter to help developers build great experiences. We are animated by the idea that app development can be better: that we can empower you by removing traditional impediments to reaching your audience.

We love seeing how you put Flutter to work. One example comes in the form of a project from the US Veterans Administration. The video below shows how their Flutter app is helping them provide rehabilitation for soldiers with post-traumatic stress disorders.

<iframe width="560" height="315" src="https://www.youtube.com/embed/2S-KkvFuLWs" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

With a <a rel="nofollow" href="https://events.google.com/io/program/content?4=topic_flutter">wide variety of workshops, presentations and on-demand sessions about Flutter</a> at Google I/O, we’re excited to share our work with all of you. And don’t forget to check out our fun <a rel="nofollow" href="https://photobooth.flutter.dev/">photo booth web app</a>, built with Flutter, which lets you create a selfie with our Dash mascot and her friends!


![0 ZdwECz0chT1hOq6Y.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1621420598357/dR3qPu8Rt.png)

<a rel="nofollow" href="http://creativecommons.org/licenses/by/4.0/">Some rights reserved</a>

Originaly posted on [medium](https://medium.com/flutter/announcing-flutter-2-2-at-google-i-o-2021-92f0fcbd7ef9)