skip to Main Content

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

enter image description here

3

Answers


  1. Chosen as BEST ANSWER

    They added a feature to the newest Android Studio versions, so we can fix all hints in the same file by one click.

    enter image description here


  2. In the root dir of project,
    Goto => analysis_option.yaml file
    in the rules section add:
    prefer_const_constructors : false

    Login or Signup to reply.
  3. Hover in const problem

    after clicking on more options

    Hover on any const warnings and go to more options. Then you will find to fix const warning of that particular file everywhere.
    Peace! ✌

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search