How important selecting android language while creating a new flutter project?

880

Solution 1

Depends on whether your app will be requiring access to Android or iOS Platform API. In most cases, there are plugins available at pub.dev for many of the APIs. But in case there is no plugin available for the API you need(rare cases), you will need to write platform specific code (refer platform integration docs) in the language you selected at beginning.

In most cases, selecting the language won't matter but it is recommended to use Kotlin for Android and Swift for iOS.

Solution 2

Although for now you won't be coding in those native languages and most probably there is a good chance that all the platform related APIs you may need to integrate in future might be available in form of flutter plugin, but assuming at some point in future you might plan to scale your project further, then at some point you might have to deal with the native code for some specific feature.

So IMO it is a good practice to choose the programming language for native code wisely. I will recommend to always choose Kotlin for android because google follows Kotlin first approach along with that kotlin is a modern language and it has lots of advantages over java.

For ios Swift is recommended language due to similar reasons as kotlin.

Share:
880
Ertuğrul Çakıcı
Author by

Ertuğrul Çakıcı

Updated on December 31, 2022

Comments

  • Ertuğrul Çakıcı
    Ertuğrul Çakıcı over 1 year

    When I create a flutter app with the android studio I see the options for selecting the specified language for both android and IOS. I do not know how to code with these languages so, I won't code with them. Therefore, I thought selecting one of them is not important for me, isn't it?

    • BabC
      BabC over 2 years
      I suggest you to select the latest langage/version (like kotlin over java for android). So you won't have any trouble during your process. But as you said it's not important for you, until you have to inject some code in each native part.