10 Things You Need To Know About Flutter Engage 2021.

“Hello, World !”
On 3rd March 2021, flutter engage event organized by google to celebrating the new release version of flutter i.e flutter 2.0.
If you are a flutter developer or just start learning flutter then this article is for you. In this article, we gonna talk about all the important announcements, releases, and news of this event. Believe me, you can grab all important keynote from the flutter engage event.
Let's Start, without wasting your time…

1.From a mobile framework to a portable framework.
The new release of flutter support four additional platforms apart from Android and iOS.
1.Windows
2.macOS
3.Linux
4.Web
Now you can think of flutter 2.0 as a free upgrade of your app if you have an existing app in flutter now you can run your app on a variety of different platforms with just a little or no change in code.
All you have to do just upgrade the flutter.
flutter upgrade
gSkinner introduces Flutter Folio (a scrapbooking app) which spans all these platforms. They are reusing 95% of their code to targeting different platforms
2.GPay(Google Pay)is moved to Flutter
There are many apps used by Google that are built-in flutter but the largest app google pay which has 150M, active users, monthly.
Google pay completely re-written In flutter for productivity gains. Now google pay use flutter in the production system.
In the flutter engage event the VP Engineering of google pay talk about how flutter improves his efficiency and resources :
They are ended with a 35% smaller codebase, 1.7M lines of code reduce to 1.1M lines of code.
After re-write has done the engineer is 90% more productive in terms of feature implementation
Getting 50% efficiency because android and iOS developer working on the same things

3.Foldable Supports To Flutter
Flutter 2.0 brings foldable support to flutter. Microsoft collaborating with google, Microsoft continue contributing code to flutter repo to bringing foldable support to flutter.
Microsoft published some major pull requests to enable the support of these complex devices.
Introduce new widget TwoPane
Widget build(BuildContext context) {
return TwoPane(
pane1: _widgetA(),
pane2: _widgetB(),
paneProportion: 0.3,
panePriority: MediaQuery.of(context).size.width > 500 ? TwoPanePriority.both :TwoPanePriority.pane1,
);
}Result of the above code:

4.Flutter Web Support
Now flutter web support in stable mode with the release of flutter 2.0.

The initial release of web support they are focusing on three app scenario:
- Progressive web apps (PWAs)
- Single page apps (SPAs)
- Expanding existing Flutter mobile apps to the web.
In web stable support, the flutter team did major architectural improvements and adding more features that extend and optimize Flutter for the web.

5.macOS, Windows, and Linux Now Available In Stable
This is a big surprise, the flutter team decided to announce stability on all desktop platforms under the early release flag.
The great news is flutter is the default choice for future desktop apps and mobile apps created by canonical. flutter has officially become the number one UI tool for future apps running on Ubuntu.
Canonical team also work with flutter team to published flutter SDK as a Snap in Snap Store. The Flutter SDK snap provides everything needed to develop Flutter apps on your favorite Linux distribution No need to install a bunch of development dependencies; simply install the Flutter SDK snap.
just run the following command in your Linux terminal:
snap install --classic flutter
6.Flutter Embedded Support
Yeah isn’t amazing?
Not only 6 platforms, but Flutter support also goes beyond the ordinary platforms. In the flutter engage event Daniel Hall chief engineer of Toyota Motor announced a partnership with flutter. Toyota is taking a completely new approach to building next-gen vehicle information systems (in-car entertainment) powered by flutter.

7.Null Safety In Dart
Flutter 2.0 launches in parallel with Dart 2.12 which brings a lot of exciting features to the developer experience. Sound null safety is available in Dart 2.12 and Flutter 2.0.
It’s a very awaited feature to bring a stable version of sound null safety. Null Safety makes every variable you declare a non-nullable type unless you explicitly indicate that it can be null.
Dart compiler can optimize your code much better if it doesn’t need to check for nulls all over the place. it means your app is even faster than before while using null safety in the code, it also decreases your app size.
8.Framework Tools Updates
Tools are a very important part of the development, flutter is known for amazing tools. the flutter team introduced new migration tools Flutter fix. Dart null-safety migration dart migrate command and exciting improvements to existing Dart DevTools
Flutter fix- Flutter is on the growing framework, as a developer if you look at your old project then you may find many deprecation warnings. The Flutter Fix feature helps you to remove deprecation warning in Flutter 2.0, combines a Dart command-line tool with changes suggested by the Dart analyzer to automatically clean up deprecated APIs in your codebase.
You can use any supported IDE to apply a single fix at a time just click on a light bulb that appears on that line of code.

To see or apply changes to an entire project, you can use the command-line tool
dart fix Dart null-safety migration tool-If you want to try migrating to null-safety, start the migration tools by running the `dart migrate` commnad.If your package is ready to migrate, then the tool produces a line like the following:
http://127.0.0.1:60278/Users/you/project/mypkg.console-simple?authToken=Xfz0jvpyeMI%3DVisit that URL in a Chrome browser to see an interactive UI where you can guide the migration process.
9.FlutterDevTools now available for VS Code and Android Studio
With the new Flutter Dev Tools, you can find and fix UI errors on your IDE. Also, you can explore your app size and analyze it.
Inspecting overflowed widgets straight from the error message — now you don’t have to search for the broken widget yourself. This change shortens the process of inspecting an overflowed widget just to a button click in the IDE error popup.

10.Monetizing The Flutter Apps With AdMob
The brand new flutter ads package google_mobile_ads has been released in beta mode for the public. this plugin provides inline banners and native ads.it’s unified integration with AdMob and Ad Manager. Using the new package ads we can be inserted as normal widgets they can scroll and interact much better with the app’s layout.
Conclusion! Flutter is everywhere.

