Flutter 2.0

Flutter 2.0

Google has recently unveiled the Flutter 2.0 version. It’s an open source UI development kit that helps app makers build cross-platform software from an equivalent codebase.

What is Flutter?

It is Google’s ongoing effort to permit developers to make apps for Android, iOS, the web — including installable PWAs — Fuchsia, embedded systems, and desktop platforms, all with an equivalent Dart code.

For a while now, Flutter for Desktop has been in an alpha stage, which meant changing APIs, bugs, and performance issues. With Flutter 2.0, Google has moved its status to somewhere between beta and stable. What does that mean? Well, it’s available in Flutter 2.0 Stable, but Google doesn’t think it’s fully complete yet. It should be fine for production use, but there could also be a bug here and there.

The Flutter 1.0 release supported iOS and Android and has been mainly accustomed to bring over 150,000 applications to mobile app stores. With the Flutter 2.0 release now, adding web support means an equivalent app can reach a fair broader audience, also opening up new ways to create interactive experiences on the web.

Flutter for Desktop should even have proper support for keyboard shortcuts, making it feel more kind of a very native app on Windows, Linux, or macOS. If you’re not convinced of its stability, Canonical (the company behind Ubuntu) has already begun remaking the Ubuntu installer in Flutter and has decided to use Flutter for all of its apps going forward.

Read our blog on: Flutter in App Development

Mobile

Since Flutter was originally a cross-platform mobile framework, there’s not really an excessive amount of to say here. For prime part, Flutter has been feature-complete for mobile for temporarily now, aside from one thing: foldables. With Flutter 2.0, there’s now support for foldable displays, due to contributions made by Microsoft. Flutter now knows the way to deal with this form-factor and lets developers lay their apps out how they have .

There’s now a replacement TwoPane widget in Flutter 2.0 that permits you to , because the name implies, show two panes. the primary pane will show on any device, while the second will show on the proper half a foldable display. Dialogs also will allow you to settle on which side of a foldable display they need to show.

The crease or depend upon a foldable is exposed to developers as a display feature (like a notch), so apps can still stretch to the entire foldable display if they need , or take into account where the hinge is found and display accordingly.

On top of that, Google has moved its Mobile Ads SDK plugin to beta. This is often an SDK for Android and iOS that permits you to display AdMob ads in your mobile app. Currently, there’s no desktop support, but now you need to be able to make relatively stable mobile apps with ads using Flutter.

These are the massive changes in Flutter 2.0 concerning desktop and mobile platforms.

Have a project in mind?