`flutter pub run` instead of `flutter run` in Run the code generator from Readme.md
gordonhch opened this issue · 0 comments
gordonhch commented
I am not sure if this is the correct place to ask or put this.
After accidentally pasting flutter pub run
from somewhere else I have managed to get to my code generated whereas flutter run
would not go ahead nor give me a relevant error message.
ChatGPT explained that "flutter run
is used to run your Flutter application, while flutter pub run
is used to execute scripts or executables provided by packages in your project". I am in no way qualified to judge on that but if there's other newbies like me who got confused, this might help. Cheers