Allows you to use any Flutter & Dart project as a template with a single line command.
It basically clones/copies the project and than changes all imports and platform specific names.
Android | iOS | Linux | macOS | Windows | Web |
---|---|---|---|---|---|
✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
Open terminal and type the following code.
> dart pub global activate copy_template
You are asked for three parameters.
- New name:
- This will be the new name of your application.
- Template:
- You can provide a git repository address containing the template project or a directory from your computer.
- Directory to install template:
- Provide a directory to install.
> copy_template my_new_application https://github.com/cogivn/flutter C:\Users\baran\Software\
> copy_template my_new_application C:\path_to_template\flutter_template_app C:\Users\baran\Software\
You can use interactive interface by passing no arguments.
> copy_template