Home > Back-end >  How can I wiew the source code for flutter commands (CLI)?
How can I wiew the source code for flutter commands (CLI)?

Time:08-20

I'd like to view the source code for flutter commands like flutter run -d chrome and flutter build web. I'd like to know what's happening behind the scenes. Where are those files located?

CodePudding user response:

The source for the flutter tool eg CLI-tool is provided with flutter and located in /packages/flutter_tools.

For the run command, look at lib/src/commands/run.dart.

  • Related