在升级flutter1.9+之后,flutter默认的iOS项目为swift,Android的默认项目为kotlin,而且通过IDEA创建的flutter项目,即使勾选了语言为oc,但是创建后的项目仍然是swift,颇为头疼.
那么我们修改创建项目项目的语言呢,
首先查看flutter create 支持哪些sub commands
~/Desktop/testcode/ flutter create
No option specified for the output directory.
Create a new Flutter project.
If run on a project that already exists, this will repair the project,
recreating any files that are missing.
Usage: flutter create
在创建项目时,比如我们想修改iOS的语言为oc,那么执行以下命令:
flutter create -i objc flutteroc