Code Formatting for Dart not working as expected in Android Studio

1k Views Asked by At

I'm using Android Studio for Flutter development, and code formatting is not working as expected.

What could be the possible issue?

enter image description here

1

There are 1 best solutions below

6
Anandh Krishnan On

Go to Settings -> Languages & Frameworks -> Flutter and check Format code on save.

Windows / Linux Ctrl + Alt + L

MAC Cmd + Opt + L