Flutter 3.22: What's New?
Flutter is a flexible, open-source framework by Google for building cross-platform applications. We've talked about this technology many times, and we can't pass by its latest update. Read this article to find out about WebAssembly support, the Impeller graphics engine, asset management with Flavors, and other Flutter 3.22 features.
WebAssembly
WebAssembly or Wasm is a universal bytecode for executing apps compiled from different programming languages in a browser. The introduction of WebAssembly support in version 3.22 means that Flutter can now use Wasm to improve the performance of web applications. This significantly speeds up rendering and makes complex animations and interactive transitions smoother.
Impeller
Impeller is a new graphics engine developed by the Flutter team to improve performance and eliminate animation issues. Unlike the previous Skia engine, Impeller compiles shaders, which are programs that run on the Graphics Processing Unit (GPU), when the Flutter engine itself is being built. This way, apps that use Impeller already have all the shaders they need compiled and can use them without any animation lag.
Also, in Flutter 3.22, the development of the Vulkan server side for Android was completed, which makes graphics smoother and improves performance. In this version, the Impeller app will use the Vulkan server side if it is available. In the next update, Vulkan will become the default option. And when running on devices that don't support Vulkan, Flutter will automatically switch to OpenGL ES with Skia.
Dynamic view sizing
Before this update, developers often had to manually calculate and set widget sizes to ensure that they display correctly on different screen sizes. Now, with dynamic sizing, you can use the Expanded, Flexible, and MediaQuery features to create pages that adjust to fit different screen sizes.
Improved form validation
With the contribution of a Flutter community member, version 3.22 has more flexible methods for form validation. Developers can now create more secure user input processing, improving usability and ensuring higher safety.
Flavor-conditional asset bundling
Flavors in Flutter is a mechanism that allows you to create different versions of an app for different purposes or environments. This can be useful, for example, for developing separate versions of an app for different customers or for adapting to different languages or regional settings.
This feature allows developers to efficiently manage assets across different versions of their apps. You can now define which assets (images, fonts, or configuration files) an app package should contain depending on the specifics of each Flavor. This way, you can flexibly customize what is available in different versions of the app for different environments or markets.
Deep linking
In the latest stable version of Flutter, a deep link checker in DevTools has been added. It supports web configuration checking for Android apps. In version 3.22, a new set of features was added to help you check settings in Android manifest files.
All the updates are aimed at improving app performance and empowering developers. Flutter is a fast and functional tool for implementing your ideas and creating functional web and mobile solutions.
Dreaming of building a business app or launching a startup project? Leave your contacts in the form and our manager will contact you and tell you about all the benefits of mobile development on Flutter.