[Flutter] What will change with Flutter 2.0?
Flutter 2.0 was announced on Wednesday, March 3, 2021.
Support for 5 OSs, official support for WEB browsers
The long-awaited major upgrade to Flutter With
this upgrade, we have officially supported web, mobile, and desktop applications.
In Flutter2.0, in the basic part, you can use the same source code and release it to 5 OSs: native apps (iOS, Android), Windows, macOS, and Linux.
* It also includes the Web for browsers such as Chrome, Firefox, Safari, and Edge.
Flutter can also be incorporated into modules related to cars, TVs, and smart homes.
The Play Store alone already has over 150,000 Flutter apps, and customers around the world, including popular apps like Alibaba, Tencent, Baidu, WeChat, Grab, Yandex Go, Nubank, Sonos, Fastic, Betterment, and realtor.com, have Flutter. I'm using.
Flutter efficiency
Over 1,000 Google engineers use Dart and Flutter to build apps.
Built with Flutter from these products such as Stadia, Google One, and Google Nest Hub.
Google Pay switched to Flutter as its flagship mobile app a few months ago, and it's already significantly improved in productivity and quality. By integrating the source code, the team eliminated functional differences between platforms and eliminated more than 500,000 lines of code.
Google Pay reports that it is much more efficient, significantly reduces technical debt, and has an integrated release process such as security reviews and experiments on both iOS and Android.
Flutter WEB
This initial release focuses specifically on three applications.
- PWA
- SPA
- Extending your existing Flutter mobile app to the web
Toyota adopts Flutter
Toyota, the world's best-selling carmaker, has announced plans to bring the best digital experience on the market to vehicles by building systems with Flutter.
🚙 The future of @Toyota's infotainment systems will be powered by Flutter.@ToyotaConnected is building Flutter right into the heart of their vehicles. Catch @danielthall at #FlutterEngage as he talks more about their plans with us!
— Flutter (@FlutterDev) March 3, 2021
On now 👉 https://t.co/T9025C5NCV pic.twitter.com/pSn299QF9P
Things that might be useful personally
Generating an IPA file from the command line
flutter build path is a command that makes it possible to generate an IPA file without opening Xcode.
https://github.com/flutter/flutter/pull/67781
Add text auto-completion library
Flutter Fix
Flutter's maintenance speed is surprisingly fast, with significant updates. As a result, many codes are deprecated.
However, even for such a problem, it seems that the following command will automatically specify the deprecated part.
$ dart fix --dry-run
Also, if you want to make corrections automatically, you can execute it with the following command.
$ dart fix --apply
DevTools "Enable Invert Oversized Images"
This is a function that allows you to easily check an image with a higher resolution than it is displayed. This allows you to track the oversize and memory usage of your app. When this feature is enabled, the oversized image is highlighted in the Flutter Inspector.
Dart's Null Safety Support
Dart's 2.12 was announced at the same time as Flutter 2, and the long-awaited Null Safety was released.