Flutter: Create a flutter project with Kotlin

7,312

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

Follow this

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.

Share:
7,312
Krunal
Author by

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

Comments

  • Krunal
    Krunal over 1 year

    Flutter allows supporting of Kotlin language.

    enter image description here

    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.

    enter image description here