Performance is a serious concern for many developer, We have do lot of special attention on this part.
Performance is nothing but the if UI and GPU doesn't complete their work in 60ms its cause to performance issue
When your analysis the flutter application performance you must to launch the application in flutter profile mode
If your using the android studio it's under the run-> Flutter Run in profile mode or If your using the VsCode --> command: flutter run -d [deviceID] --profile
In VsCode open the DevTools and enable the --> show performance overlay
After enable the overlay it will show like below gif on your realtime device or emulator
There is two thing top I GPU and second one is UI
While checking you use case the both GPU and CPU shows Red line.
If it's show red line in both the GPU and UI its concerns you have to reduce the too much work on certain performing action in your application.
If UI alone showing too much red line that also need to consider to reduce the UI rendering in current screen of your application.
At last check the memory leak of your application in DevTools
Refer the flutter https://flutter.dev/docs/perf/rendering/ui-performance for reference too
https://flutter.dev/docs/perf
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…