Flutter provides a tool called flutter create that will be used to generate projects. There are a whole bunch of flags that we can use to configure the app, but for this recipe, we're going to stick to the basics:
If you are curious about what's available for any Flutter command-line tool, simply type flutter <command> --help. In this case, it would be flutter create --help. This will print a list of all the available options and examples on how to use them.
- Let's type this command to generate our first project:
flutter create hello_flutter
This command assumes you have an internet connection since it will automatically reach out to the public website to download the project's dependencies.
If you don't currently have an internet connection, type the following instead:
flutter create --offline hello_flutter
You will eventually need an internet connection to synchronize your packages, so it is recommended to check your network connection...