I have the following warnings in Android Studio’s Dart Analysis window that get detected in my Flutter code.
I want to fix them all by doing only one action
Is there any approach to do this?
Note that i’m working with Android Studio Arctic Fox | 2020.3.1 Patch 2 on MacOS Mojave 10.14.6
3
Answers
They added a feature to the newest Android Studio versions, so we can fix all hints in the same file by one click.
In the root dir of project,
Goto => analysis_option.yaml file
in the rules section add:
prefer_const_constructors : false
Hover on any const warnings and go to more options. Then you will find to fix const warning of that particular file everywhere.
Peace! ✌