Google’s Flutter is everywhere in the news! Yes, the popular giant achieved the next big milestone by releasing the stable version of Flutter 2.0. It is one of the most desperately awaited stable releases of the platform after the Flutter 1.0 release almost two years ago. As described by the team, the primary goal behind announcing Flutter 2 is to facilitate developers to build an application that gives an unmatchable experience.
What’s new in Flutter 2.0?
Google launches Flutter 2.0 with all the extraordinary features and fixes. In this stable release, Flutter has closed 24,541 issues, merged 17,039 PRs from 765 contributors. Some of the top contributors are Xu-Baolin, who contributed 46 PRs, and a14 who contributed 32 PRs. Even volunteer PR reviewers also gave their contribution to review 1525 PRs.
“Ecosystems don’t grow overnight, and Flutter is still a new platform by some standards, but we believe the 15,000 packages and the companies represented above [e.g., Nubank and Realtor.com] are evidence of fast growth in filling the remaining gaps, such as they exist,” Sneath said. “We’re very encouraged by that continued growth.”
Well, this seems to be the most celebrated Flutter release with the hashtag #FlutterEngage as marketed by Flutter's product manager Tim Sneath. As it is seen and often mentioned by the team at Flutter, Flutter is brought by the community effort.
The open-source platform allows users to contribute to the platform enhancement, and it is their effort that has helped Flutter rise to this level. So, yeah, coming back to what’s stored in the Flutter 2 release? 3rd Mach’21 will be remembered not only for the Flutter 2.0 features release but also for Dart 2.12. In this blog, we will be discussing both of these releases and let you know how you can extract the best from them. To begin with, Flutter 2.0 release notes are:
Flutter support for Web:
The most exciting outcome of this stable release is Flutter’s production quality support for the web. This release has moved its path from document-centric to the app-centric framework. Flutter facilitates the reusability of code even on the web platform.
The stable release feature enriches the platform with a richer platform API for building 2D, 3D graphics, interactive & flexible layouts, and high performance. The release introduces CanvasKit-based renderer along with HTML renderer. The last release also releases Link Widget, using which the developer can give a web-app-like feel in a browser. You can read more about the web-support in detail in the official blog post.
Sound Null Safety:
As we have mentioned above, Dart 2.12 release accompanies this major Fluter release. An eye-catching release in this Dart version is the Sound null safety feature. It will help developers distinguish between nullable and non-nullable types.
Sound Null Safety will enable developers to catch null errors during the development itself. This means the downtime during the production due to null errors can easily be erased.
Flutter for Desktops:
Just like the web, you can extend Flutter to support desktop applications.
“We’ve done a ton of work to get to this stage, including adding internationalization support, for example, IME editors for languages like Chinese, new widgets like TreeView and DataTable that are designed for desktop support, and better support for Apple Silicon-powered development machines,” Sneath said.”
Flutter will allow developers to give a native-like app experience on every platform that it resides. The native-like experience will include text selection pivot points, mouse dragging with accuracy, a built-in context menu, and more. Developers can now stop the keyboard events even after their initiation. Developers can now also have their hands on grab handles and effortlessly move items in the ReorderableListView widget.
Another addition is the updated scrollbar widget that facilitates interactiveness in the desktop app using a thumb. The desktop-flutter app will also show mouse hovers in the scroll bar and page up and down tracks. On top of this, developers can also use the new ScrollbarTheme class to customize the app as per their choice.
The flutter release also enables smoother resizing for Windows and macOS. If you are planning to deploy your app on OS-specific stores, you can go through the document provided by the Flutter community.
Developers can also find information about beta channels if they wish to try the beta for the flutter desktop. But, the stable channel doesn’t facilitate quick bug fixes as supported in the beta version.
Also, as the flutter community moves ahead in the production-quality release, you can expect support for integration with native top-level menus, native-like text editing, and accessibility support.
Platform Adaptive Apps:
Flutter has unveiled its support for web, desktop, macOS, Linux, and Windows. However, these are in their early stages and might go under iteration, but the question that bothers developers is,
“How to develop an app that adapts itself to multiple forms, modes, and idioms? You might get all the answers if you check out the Flutter Folio sample and listen to it in Flutter experts' own words.
This video will very well explain how you can develop an app that runs exactly the same in performance and quality across multiple platforms using the same code base.
Google Mobile Ads:
Surprise surprise, Flutter releases Google Mobile Ads SDK beta version. Developers can now include inline banners and native ads along with the already existing overlay formats.
You can easily customize your advertisement using the support of Ad Manager and Admob. There are many early users of this new format who have experienced a considerable rise in popularity and impression.
Extended support to iOS:
As we have mentioned before, out of a total of 17,039 PRs, 178 PRs are iOS-related. This includes a long-awaited expectation of building an IPA directly from the command line without using XCode and 69809 to end.
Autocomplete and ScaffoldMessenger:
Developers can now have access to two new widgets: Autocomplete core and ScaffoldMessenger, while building mobile apps using Flutter. Autocomplete is a must-have and demanded feature that allows inducing auto-complete features in your native apps built using Flutter.
On the other hand, ScaffoldMessenger assists in the easy creation of SnackBar to be in action between Scaffold transitions.
Multiple Flutter instances with Add-to-App:
Most of you would agree that you would embrace Flutter's ability to reuse the same code for building mobile applications for iOS and Android. Also, if you have an already existing application, you can add Fluter into it using the Add-to-App feature. This feature will help you save the native-code base while still executing the code for two platforms.
Flutter is a developer’s homeland. The framework is contributed and upgraded by the community of enthusiast developers. Flutter’s community of developers is soon going to cross 500,000, which means it is important to avoid making changes in the framework API. Flutter.Fix will solve this problem.
With this announcement of the Flutter 2.0 release, the community has changed the name from DevTools to FlutterDevTools, especially while debugging.
The new DevTool will enable AndroidStudio, IntelliJ, or Visual Studio Code to check for an exception and help you with debugging. Also, the new DevTool has the capability to identify an image having a higher resolution than it is shown.
There is a lot more that has been introduced in the flutter 2.0 release notes. We recommend that you talk to our experts and grab your hands at the first sit of knowledge shared. You can also hire our flutter app developers full-time if you already have an app project in hand. We are a leading Flutter app development company having hands-on expertise in developing Flutter apps.
Our Flutter nerds would be happy to discuss with you the new introductions in DevTools, Flutter’s support for Android Studio/IntelliJ extension, Flutter support for Visual Studio Code extension, DataPad upgradation, and other ecosystem updates. I know you all are excited to explore the Flutter releases, and we are here to help you.
Principal Mobile App Developer