Issue
I have switched from vsCode to android studio for my flutter project as I think I feel comfortable reading the code In android studio
Though in vs code when i save the file the file gets formatted and it adds const
keyword wherever my widget needed it
PROBLEM
In android studio neither the code gets formatted nor it adds const keyword wherever its needed
Please help with the 2 problem
Solution
- Go to
File
->Settings
->Languages & Frameworks
->Flutter
- Under Editor Section check the
Format code on save
andOrganize imports on save
options and Apply changes.
Answered By - Dulaj Nadawa
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.