Flutter: Create a flutter project with Kotlin
Solution 1
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
.
Solution 2
Open your Android module in android so you can add your kotlin files
Solution 3
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.
Krunal
Contact me, if you're looking for a CTO or Engineering Director/VP. contact: +91 - 9737007007 mail: [email protected] Following some great SO users....
Updated on December 04, 2022