flutterandroid-studiodartauto-import

flutter, android studio, auto import, dart


Is there a way to make Android Studio auto import packages from external libraries? What I mean by that is I got to pub.dev getting package I want and then in Android Studio I can write name of the class I want to use from that package and IDE would auto import it for me... I believe in VS Code is as simple as on mac cmd + . (fullstop) is driving me nuts

thank you


Solution

  • yes, you can add any external package from pub.dev using this command in terminal: flutter pub add package-name