vizo_app_generator

Vizo.dev 使用的许多代码模板项目。

安装 Mason (首次)

? 从 https://pub.dev/packages/mason_cli 激活 dart pub global activate mason_cli

开始使用 (使用模板)

在此仓库终端中: mason get (将列出添加到此仓库的所有模板)

mason make (将列出添加到您全局列表的所有模板)

(示例: 名为‘hello’的模板) mason make hello

mason make hello -o .\generated\hello

mason make weather -c .\bricks\weather\config.json -o .generated\weather

创建/添加

mason new NAME (创建新模板)

mason add --global --path ./bricks/FOLDER_NAME NAME (设置模板后,将其添加到您的全局模板列表) (这样您就可以在当前文件夹/仓库之外使用此模板)

Usage:
mason add [arguments]
-h, --help       Print this usage information.
-g, --global     Adds the brick globally.
--git-url        Git URL of the brick
--git-ref        Git branch or commit to be used
--git-path       Path of the brick in the git repository
--path           Local path of the brick

高级功能 (安装模板)

mason install --source git https://github.com/fellangel/mason --path bricks/greeting

mason install --source path .\bricks\weather

如需了解Flutter开发入门帮助,请查看在线文档,其中提供教程、示例、移动开发指南以及完整的API参考。

GitHub

查看 Github