Flutter create new project with package name

To create a new Flutter project with a specific package name, you can use the following command:

flutter create --package-name <package_name> <project_name>

Replace <package_name> with the desired package name, and <project_name> with the desired project name.

For example:

flutter create --package-name com.example.myapp my_app

This will create a new Flutter project with the package name com.example.myapp and the project name my_app.

Note: The package name should be a valid Java package name, which means it should start with a domain name (e.g. com.example) and be followed by a series of letters, numbers, and underscores.

Also, you can use the --org-name option to specify the organization name, which is used to generate the package name. For example:

flutter create --org-name com.example --package-name myapp my_app

This will create a new Flutter project with the package name com.example.myapp and the project name my_app.