Flutter:使用Kotlin创建Flutter项目 [英] Flutter: Create a flutter project with Kotlin
本文介绍了Flutter:使用Kotlin创建Flutter项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Flutter允许支持Kotlin语言.
Flutter allows supporting of Kotlin language.
如何将我的Kotlin文件与Flutter项目集成在一起?
How can I integrate my Kotlin file with Flutter project?
无法在Android Studio中添加/创建Kotlin文件(在New
菜单中).
There is no option to add/create a Kotlin file (in New
menu) in Android Studio.
推荐答案
我认为kotlin文件只能在特定于平台的插件中使用.例如.您有适用于iOS和android的特定于平台的实现,并且可以将kotlin用于Android部分.
Flutter SDK直接与Dart
一起使用.
I think the kotlin files can only be used in the platform-specific plugins. E.g. 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
.
这篇关于Flutter:使用Kotlin创建Flutter项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文