This is the base for the Flutter template with mason.
The lib folder is empty so you can start to make a template with this.
The mustache syntax {{application_id}} is implemented across 6 platforms. Only Android has been tested. If any errors occur or if it works fine on other platforms, please raise an issue and let me know.
- Android ✅ - 24.04.26
- IOS ❓ - Not tested yet
- Web ❓ - Not tested yet
- Linux ❓ - Not tested yet
- MacOS ❓ - Not tested yet
- Windows ❓ - Not tested yet
There're 4 prompts for the brick.
project_name: Project name.org_name: Organization name likecom.example.application_id: App id after the organization name. Used on multiple platforms withorg_name.description: Project description.
- Install Mason CLI ( If it's not installed )
dart pub global activate mason_cli - Git clone the repository
git clone https://github.com/jhj0517/flutter_template_base.git - Implement your own template in the
__brick__/{{project_name.snakeCase()}}/lib. - Add the template as the global brick. (you can change the brick name in
brick.yamlas you want. )mason add -g flutter_template_base --path ./ - Check that the brick is added correctly.
mason ls -g ├── flutter_template_base 0.1.0 // it prints something like this - You can now start a new project with your own template
mason make flutter_template_base