-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Description
@henry2man commented on May 14, 2021, 6:07 AM UTC:
TL;DR:
As a developer -sometimes- I introduce performance problems in my applications 😅 What if the Flutter plugin helps me detect and fix them?
Full story:
Reviewing some articles on recommendations to improve the performance of applications made with Flutter, I find some elements that could be added to the plugin to help developers improve the performance of their apps.
For example:
- It is recommended not to use methods that create Widgets (or lists of Widgets) within the
build()method. Instead, specific Widgets must be created (https://www.youtube.com/watch?v=vVg9It7cOfY&t=1320s, https://blog.codemagic.io/how-to-improve-the-performance-of-your -flutter-app./#dont-split-your-widgets-into-methods) - It is recommended to use lazy lists instead of creating all items manually (https://flutter.dev/docs/perf/rendering/best-practices#render-grids-and-lists-lazily)
- It is recommended not to use the
Opacitywidget (https://flutter.dev/docs/perf/rendering/best-practices#pitfalls)
I am not an absolute specialist in performance with Flutter but I have debugged on other platforms and it is a very important element in mobile apps.
My suggestion is that some of these items could appear as part of the warnings and/or as part of a specific performance analysis extension within the plugin.
What do you think?
This issue was moved by pq from flutter/flutter-intellij#5484.