auto Add Const in flutter in Android Studio and VsCode

Is there an easy way to add Const as much as possible in Flutter

 Open Vscode : settings -> open settings.json file Copy paste following lines



“editor.codeActionsOnSave”: {

    “source.fixAll”: true

 }





Android studio




In addition to linting, you can fix most cases of missing or redundant const automatically by running


 dart fix --apply


Run 


dart fix --dry-run 


first to see what will change.

1 فكرة عن “auto Add Const in flutter in Android Studio and VsCode”

اترك تعليقاً

لن يتم نشر عنوان بريدك الإلكتروني. الحقول الإلزامية مشار إليها بـ *