Flutter如何指定项目的语言

Flutter默认创建的项目使用的是iOS的swift和android 的kotlin语言。
如果你的项目使用的是OC或者是java可以终端输入下面的命令。


1.android 使用kotlin iOS使用Swift(默认)
flutter create -i swift -a kotlin flutter_example

当然这里也可以省略 指定swift和kotlin参数简写成下面命令

flutter create  flutter_example

2.android 使用kotlin iOS使用OC
flutter create -i objc -a kotlin flutter_example

3.android 使用java iOS使用Swift
flutter create -i swift -a java flutter_example

4.android 使用java iOS使用OC默认
flutter create -i objc -a java flutter_example

猜你喜欢

转载自blog.csdn.net/ZCC361571217/article/details/107585561