logo
logo
Sign in

flutter 2 with support from multiple platform

avatar
Akshay Nanjunda

Google held a event called but flutter engage where they release the second version of flutterit has the same base of cross platform development but this is with the similar code base this version of flutter does not only build apps for mobile but also has the ability tomanage apps for web desktop and foldables 

 

so let's start exploring the flutter 2

 

Flutter has a very good web support

The largest declaration in Flutter 2 is the production-quality site support. Previously, the web was built on a document-centric basis. However, the web platform has evolved to allow for the distribution of richer platform APIs that enable extremely sophisticated applications to use hardware-accelerated 3D and 2D graphics, paint APIs, and versatile layout.

 

Flutter's web support lays the groundwork for these advancements, offering an app-focused platform that takes full advantage of everything the new web can have to offer. This update initially focuses on three app scenarios.

 

singer page app

progressive web app

bringing current apps to web

 

Google primarily focused on rendering fidelity improvements and efficiency. They added a new CanvasKit-based WebAssembly rendered.

 

They also included web-specific features such as URL control in the address bar, text autofill, PWA manifests, and routing. A Connection Widget was also included to ensure that a smartphone app running in the browser feels like a web app.

 

Flutter desktop support

Flutter's desktop support can be used as a deployment target for all Flutter apps by Google. Many improvements have been made to bring Flutter desktop up to par, including ensuring that text editing works like a native experience on all supported platforms and adding foundational features such as text selection pivot points.

 

The TextFormField and TextField widgets for Cupertino and Material design languages now have a built-in background menu. In addition, the ReorderableListView widget now has grab handles. This widget has always been great at shifting stuff around with a developer's minimal effort.

 

Another improvement for platform-idiomatic features that shows precisely for the desktop form-factor is an improved scrollbar. The revamped scrollbar widget includes a number of engaging features that are similar to those found on the screen, such as the ability to click on the track to page up and down and drag the thumb to show a track when the mouse flutters over it.

Flutter 2 adds command-line argument management to Flutter apps, allowing simple actions like double-clicking a data file in Windows File Explorer to open it in your app.

 

Furthermore, Google has updated its documentation on what developers to do to prepare their desktop applications for deployment to OS-specific stores.

 

If you continue to use the desktop beta but remain on the stable channel, you won't get new bug fixes or features as quickly as if you switched to the dev channels or beta. As a result, if you want to deliberately target Linux, macOS, or Windows, you can switch to a platform that provides quicker updates.

 

extended portability

 

Flutter is increasingly being used on platforms other than the web and traditional mobile devices. Google highlighted three collaborations that demonstrate Flutter's enhanced portability.

 

To begin, Canonical and Google are collaborating to bring Flutter to the desktop, with developers providing code to support deployment and creation on Linux. Canonical aims to provide dependable, beautiful experiences through a wide range of hardware configurations. And Flutter is their go-to framework for new mobile and web applications.

 

Second, Microsoft will expand its Flutter support. Microsoft will add contributions to the Flutter engine that help the increasing class of foldable Android devices, in addition to the existing partnership for providing premium quality Windows support in Flutter. These devices usher in new design trends, with apps that can either take advantage of the dual-screen nature of these devices to provide side-by-side experiences or expand content.

 

Finally, Toyota, the world's best-selling vehicle maker, announced its plans to introduce best-in-class digital experiences to cars through Flutter-enabled infotainment systems.

 

Flutter Fix
Flutter repair is a combination of a few items. Dart Fix, an exclusive command-line alternative to the Dart CLI tool, knows where to look for a list of deprecated APIs and how to upgrade code that uses those APIs. Then there's the list of open fixes that comes with version 2 of the Flutter SDK.

 

Finally, it's an improved collection of Flutter extensions for IntelliJ, VS Code, and Android Studio IDEs that can show a similar list of usable solutions, such as quick fixes with little light bulbs that can help developers change their codes with their mouse.

 

Flutter Folio

How is it possible to write an app that adapts to multiple form factors (large, small, and medium screens), numerous idioms (desktop, web, and mobile), and various input modes (mouse, keyboard, and touch) when Flutter only supports three platforms (iOS, Android, and the web) for production apps and three more in beta (Linux, macOS, and Windows)? The scrapbooking app Flutter Folio was commissioned by Google to address this query.

 

Folio is a simple example of an application that can operate on several platforms using a single codebase. This app is referred to as platform adaptive because it adapts to the platform it is running on.

 

add to app

Developers will now benefit from Flutter by incorporating it into their existing Android and iOS applications. This functionality is called Add-to-App, and it's a perfect way to reuse Flutter code in all platforms while keeping the existing native codebase. On the beta channel, the latest APIs that allow this are in preview.

 

These APIs, as well as a collection of sample projects demonstrating this new trend, are documented on flutter.dev. Google will now recommend using various instances of the Flutter engine in native apps as a result of this update.

 

Conclusion

Flutter 2 has been released for easy usage of Android app and making Android apps easy other than that it also helps us to build apps for multiple platform we have noted the release of the new version of Flutter and brillmindz oone of the best mobile app development companies in Dubai are waiting to explore the feature


collect
0
avatar
Akshay Nanjunda
guide
Zupyak is the world’s largest content marketing community, with over 400 000 members and 3 million articles. Explore and get your content discovered.
Read more