Skip to content

Switch flutter create default to Kotlin and Swift #21190

@timsneath

Description

@timsneath

On creating a new project with Flutter, flutter create defaults to creating apps in Objective-C (iOS) and Java (Android) today. This probably made sense when we wrote this tool: since both of these two languages predominated their respective ecosystems. In the intervening time, both communities have adopted a new language (Swift and Kotlin, respectively). While all four languages are supported by flutter create with the -i and -a switches, the default has not changed.

Looking at XCode, the default language for new applications is already Swift:
image

Similarly, Kotlin seems to be the preference of the Android team moving forward, and has significant advantages over Java as a productive, modern programming language.

Now seems a good time to switch the default for flutter create to Swift and Kotlin, since we have feature parity between the two project types and these seem the de facto standards for new apps. Switching the default obviously is not a loss of functionality: users can continue to create Objective-C and Java-based projects with the same switches as before.

Metadata

Metadata

Assignees

Labels

toolAffects the "flutter" command-line tool. See also t: labels.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions