1 minute read

Flutter Ads GA

Next Article
DevTools

DevTools

3. DevTools

Flutter 2.8 brings a feature called “Enhance tracing” to manage debugging issues. It allows developers to fix the stemming of the UI. As soon as a tracing feature gets enabled, it will render laid-out objects, include new events for created widgets, and render painted objects.

Advertisement

The latest version of DevTools can add support to gauge an app’s performance level. This profile has the CPU samples from initializing DartVM to rendering the first frame of Flutter.

As soon as you press the button called “App Start Profile” to load the app’s profile, you’ll notice that an “AppStartUp” tag gets selected. You may also select the filter for the user tag from the list of the available ones to load the launch profile of the application.

4. Viewing web platforms

Flutter 2.8 has also augmented the performance of the Flutter web platform view. The platform view lets developers host the components of the UI. Flutter web does it with the help of a widget called HTMLElementView.

With this widget, you can host the elements of HTML inside the web app of Flutter. Users generally rely on the platform views by default whenever they use the web versions of the video_player plugin or Google_maps_flutter plugin.

The moment you embed the platform view in an older version, it’ll create a new canvas. Furthermore, more canvases will get added every time you include platform views. It’ll cost you a lot of money to create the extra canvases as each of the measures as much as an entire window.

This article is from: