简体   繁体   中英

Flutter: Create a flutter project with Kotlin

Flutter allows supporting of Kotlin language.

在此处输入图像描述

How can I integrate my Kotlin file with Flutter project?

There is no option to add/create a Kotlin file (in New menu) in Android Studio.

在此处输入图像描述

I think the kotlin files can only be used in the platform-specific plugins. Eg you have platform-specific implementation for both iOS and android and you can use kotlin for the Android part. The Flutter SDK is used directly with Dart .

按照这个

Open your Android module in android so you can add your kotlin files

Flutter does not support Kotlin and it looks it will not allow Flutter to be written in Kotlin language. The biggest advantage of using Dart language is the management of the object. It has a great garbage collector. Don't you think google developers didn't think about that before? Of course, they did. But Dart is chosen as the one language of Flutter.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM