How does Flutter specify the language of the project

The projects created by Flutter by default use the swift language of iOS and the kotlin language of Android.
If your project uses OC or java, you can enter the following command in the terminal.


1.Android uses kotlin iOS uses Swift (default)
flutter create -i swift -a kotlin flutter_example

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

flutter create  flutter_example

2.Android uses kotlin iOS uses OC
flutter create -i objc -a kotlin flutter_example

3. Android uses java and iOS uses Swift
flutter create -i swift -a java flutter_example

4.Android uses java and iOS uses OC by default
flutter create -i objc -a java flutter_example

Guess you like

Origin blog.csdn.net/ZCC361571217/article/details/107585561