头图

At this Google I/O 2021 conference , we officially released Flutter 2.2 . Flutter 2.2 is our latest version of the open source toolkit, which allows developers to build beautiful applications for any device based on a single platform. Flutter 2.2 is by far the best version of Flutter. With the updated features, developers can more easily monetize their applications through in-app purchases, payment methods, and advertisements, and can also connect to cloud services and APIs to extend the functionality of their applications; and with the help of tools and language features, developers can Eliminate a whole class of errors, enhance application performance and reduce package size.

is built on the basis of Flutter 2

Flutter 2.2 is built on the basis of Flutter 2, and extends the foundation of Flutter from the original mobile device to the web, desktop devices, and embedded devices. Its unique design is to meet the needs of the environmental computing world, because in such a world, users have all kinds of devices with different sizes, and users expect to get consistent beauty on all kinds of devices in their daily lives. Experience. The existence of Flutter 2.2 allows companies, start-up teams and entrepreneurs to create high-quality solutions to give full play to the potential of the potential market, so that the target platform is no longer a limiting factor, but only needs to focus on finding creative inspiration.

Flutter is currently the preferred cross-platform development framework for developers.

The results of a recent mobile developer survey highlight the rapid development of Flutter. Analysis company SlashData Mobile Developer Population Forecast 2021 (2021 Mobile Developer Population Forecast) The report shows that Flutter is today's most popular cross-platform development framework, with 45% of developers choosing it from the first quarter of 2020 to 2021 During the first quarter, the number of users increased by 47%. Our own data also confirms this growth. In the past 30 days, more than one-eighth of the new apps on the Play Store were developed using Flutter.

At the I/O conference, we introduced that now there are more than 200,000 apps developed using Flutter in the Play Store alone; companies that develop these apps such as Tencent, and its instant messaging app WeChat ) on iOS and Android the number of users more than 1.2 billion platform; there TikTok pioneer byte beating , which is currently using Flutter developed 70 models of different applications; and BMW , Shein , the Grab and bit Waiting for the company. Of course, it’s not just big companies that use Flutter. Some creative apps come from companies you might not have heard of, such as Wombo (a popular singing selfie app), Fastly (a diet control app) ) And Kite (an exquisite investment trading application).

Introducing Flutter 2.2

Flutter 2.2 focuses on improving the development experience, with the goal of enabling you to provide customers with more stable and better-performing applications.

Now, by default, new projects automatically enable sound empty security. Null safety can effectively prevent null reference exceptions, allowing developers to have some ways to express non-nullable types in their code. Since Dart's implementation is very , the compiler can avoid null checks at runtime, thereby improving the performance of the application. The ecosystem is also following closely, and there are currently about 5,000 package updates to support air security.

Many performance improvements are also included in this version: For web applications, we use Service Worker to provide back-end caching; for Android applications, Flutter supports lazy loading of components; as for iOS applications, we are already developing tools to pre-load shaders. Compile, in order to eliminate or reduce the first run stuck. We have also added many new features to the DevTools suite to help you understand how memory is allocated in the application and support third-party tool extensions.

In addition, we have also optimized some important areas, such as improving the accessibility of network targets.

Our work is no longer limited to the core of Flutter. We are also working with other Google teams to link Flutter with developers of more technology stacks. In particular, we will continue to build trustworthy services to help developers monetize their applications responsibly. In this version, our new advertising SDK has also been updated and now has empty security settings and supports adaptive banner ad formats. We have also introduced a new payment plug-in, which is jointly developed by us and the Google Pay team, which can be used to process the payment of physical goods on the iOS and Android platforms. In addition, we have also updated our app purchase plugin and the matching codelab .

Dart has also been updated as the "secret weapon" for Flutter. Dart 2.13 extends support for native interoperability, and now supports the use of arrays and encapsulated structures in FFI. The new Dart version also supports type aliases, which not only improves code readability, but also makes part of the refactoring easier. We will continue to add integration solutions to the wider ecosystem, including GitHub Actions Docker image optimized for cloud-based business logic deployment.

not just a Google project

Although Google is still the main contributor to the Flutter project, we are also pleased to see that the Flutter ecosystem continues to grow and develop.

In recent months, a particular area of growth has been the increasing number of platforms and operating systems that support Flutter. In the Flutter Engage event , we announced that Toyota will introduce Flutter into its next-generation car infotainment system . Last month, Canonical launched its first integrated with Flutter support, which integrates Snap and supports Wayland.

The arrival of two new partners also shows that this ecosystem is evolving: Samsung is porting Flutter to Tizen (using an open source code library that other developers can also contribute content), Sony is leading the provision of embedded Linux Solution and work hard .

from the open source nature of this project. 160a73759b6189 Adobe has announced the release of its XD to Flutter plug-in update . Adobe XD provides designers with an excellent way to experiment and iterate. Now, thanks to the enhanced support for Flutter, designers and developers can work together to put their ideas into practice at an unprecedented speed.

Finally, Microsoft will continue to cooperate with us; in addition to the Surface team has been using Flutter to develop foldable device experience projects, this week has added Flutter UWP (Windows 10) Alpha application . We are excited to see that more and more applications are using Flutter's built-in platform adaptation capabilities to create an experience that can run perfectly on multiple platforms such as mobile devices, desktop, and web.

Create a great experience

Our main purpose for launching Flutter is to help developers create a great experience. We believe that application development can be better, and hope to remove the traditional barriers you encounter when reaching your audience. These concepts inspire us to keep moving forward.

We look forward to seeing you use Flutter to build apps. The U.S. Department of Veterans Affairs project is a good application example. Through video , you can learn how its Flutter application helps them provide rehabilitation for soldiers with post-traumatic stress disorder (PTSD).

Our work on Flutter will be you in the 160a73759b621c Google I/O conference in the form of various seminars, presentations and video on demand . Don't forget to try our photo booth web application , this interesting application is developed with Flutter, where you can take a photo with our mascot Dash and his friends!


Flutter
350 声望2.5k 粉丝

Flutter 为应用开发带来了革新: 只要一套代码库,即可构建、测试和发布适用于移动、Web、桌面和嵌入式平台的精美应用。Flutter 中文开发者网站 flutter.cn