我想知道我是否可以创建我自己的flutter模板。就像Android Native在Android Studio中一样。在命令中有模板选择的 Flutter ,例如flutter create -t skeleton <project-name>我有我自己的项目结构,我想添加我的自定义模板与该命令就像flutter create -t <my_custom_template> <project-name>
flutter create -t skeleton <project-name>
flutter create -t <my_custom_template> <project-name>
zbq4xfa01#
我不认为这是目前可能的。最好的方法是在Visual Studio Code或Android Studio中创建代码片段,如本视频所述:https://www.youtube.com/watch?v=g93mls_EJmU&ab_channel=VandadNahavandipoor
xggvc2p62#
否则,您可以创建自己的CLI。You can check this template that creates many boilerplate code for you using exactly this.
2条答案
按热度按时间zbq4xfa01#
我不认为这是目前可能的。最好的方法是在Visual Studio Code或Android Studio中创建代码片段,如本视频所述:https://www.youtube.com/watch?v=g93mls_EJmU&ab_channel=VandadNahavandipoor
xggvc2p62#
否则,您可以创建自己的CLI。You can check this template that creates many boilerplate code for you using exactly this.