Skip to content

[proposal] - flutter create templates ship outdated dependency versions and require manual built-in Kotlin migration #194439

Description

@SwanFlutter

Use case

When creating new projects with the latest stable Flutter (flutter create), the generated templates are already out of date, so every new project needs manual fixes right after creation:

  1. The project still needs the manual "Migrate to built-in Kotlin" steps (https://docs.flutter.dev/release/breaking-changes/migrate-to-built-in-kotlin/for-app-developers), even though it was generated seconds ago by the Flutter tool itself.
  2. Default dependency versions in the templates are behind pub.dev:
    • App: cupertino_icons: ^1.0.8 (latest: ^2.0.0)
    • Plugin: plugin_platform_interface: ^2.0.8 (latest: ^2.1.8)
    • Plugin (web): web: ^1.0.0 (latest: ^1.1.1)
  3. flutter create --template=package generates no example/ app, unlike plugins.

Is your feature request related to a problem?

Yes. Every new app/plugin/package starts in an outdated state. Developers have to (a) manually apply the built-in Kotlin migration to a brand-new project, (b) manually bump dependency constraints, and (c) manually create an example app for packages. This is repetitive, easy to forget, and gives a poor first impression of the "latest" template. It also makes pub.dev scoring worse for packages that ship without an example.

Question: why doesn't flutter create generate the built-in Kotlin configuration by default? Since the template is fully controlled by the Flutter tool, I would expect a fresh project (app and plugin) to already be in the migrated state. If there is a technical reason (AGP/Gradle minimum versions, compatibility with older plugins, etc.), it would be helpful to document it in the migration guide.

Requested changes:

  • Generate the built-in Kotlin setup by default in app and plugin templates.
  • Update template dependency defaults to the latest versions (and ideally add a CI check so they don't drift behind in the future).
  • Generate a minimal example/ for --template=package (or add a flag such as --with-example).

Describe the alternative solutions you’ve considered:

  • Manually applying the built-in Kotlin migration after every flutter create.
  • Running flutter pub upgrade --major-versions after creating a project, which fixes dependency constraints but must be repeated for every new project.
  • Manually running flutter create example inside the package folder to add an example app.
  • I'm not aware of any package on pub.dev that solves this, since it is about the defaults of the flutter create command itself.

Proposal

Update the flutter create templates so that a freshly generated project is already up to date and needs no manual fixes:

  1. App and plugin templates generate the built-in Kotlin configuration by default (per https://docs.flutter.dev/release/breaking-changes/migrate-to-built-in-kotlin/for-app-developers), so no migration is needed on a newly created project.

  2. Template dependency defaults match the latest published versions:

    • cupertino_icons: ^2.0.0 (currently generates ^1.0.8)
    • plugin_platform_interface: ^2.1.8 (currently generates ^2.0.8)
    • web: ^1.1.1 (currently generates ^1.0.0)
      Ideally a CI check or test fails when a template's constraint falls behind the latest version on pub.dev.
  3. flutter create --template=package generates a minimal example/ app, as plugins already do. If changing the default is undesirable, add an opt-in flag such as --with-example.

Example of the expected result after flutter create --template=plugin my_plugin:

dependencies:
  flutter:
    sdk: flutter
  plugin_platform_interface: ^2.1.8
  web: ^1.1.1

and an Android project that is already on built-in Kotlin, with no manual migration steps required.

This must be provided by Flutter directly. The defaults are part of the templates inside the flutter tool (flutter create), so a pub.dev package cannot change what the command generates.

Activity

  1. SwanFlutter commented on Oct 15, 2026

    @SwanFlutter
    Author

    C:\Users\SjjadKarimi>flutter doctor
    Doctor summary (to see all details, run flutter doctor -v):
    [√] Flutter (Channel stable, 3.47.5, on Microsoft Windows [Version 10.0.19045.7807], locale en-US)
    [√] Windows Version (10 Pro 64-bit, 22H2, 2009)
    [√] Android toolchain - develop for Android devices (Android SDK version 37.0.0)
    [√] Chrome - develop for the web
    [√] Visual Studio - develop Windows apps (Visual Studio Enterprise 2026 18.3.0)
    [√] Connected device (4 available)
    [√] Network resources

    • No issues found!

  2. added
    in triage
    on Oct 15, 2026
  3. saurabh-mirajkar commented on Oct 15, 2026

    @saurabh-mirajkar
    Contributor

    @SwanFlutter Thanks for the detailed proposal. Routing this for the team for further investigation.

  4. added
    tool
    c: proposal
    team-tool
    and removed
    in triage
    on Oct 15, 2026
  5. changed the title [-]flutter create templates ship outdated dependency versions and require manual built-in Kotlin migration[/-] [+][proposal] - flutter create templates ship outdated dependency versions and require manual built-in Kotlin migration[/+] on Oct 15, 2026
  6. SwanFlutter commented on Oct 15, 2026

    @SwanFlutter
    Author
  7. stuartmorgan commented on Oct 15, 2026

    @stuartmorgan
    Contributor
    • Plugin: plugin_platform_interface: ^2.0.8 (latest: ^2.1.8)
    • Plugin (web): web: ^1.0.0 (latest: ^1.1.1)

    These are not outdated; ^2.0.8 includes 2.1.8, and ^1.0.0 includes 1.1.1.

    • App: cupertino_icons: ^1.0.8 (latest: ^2.0.0)

    This is the only one that will not automatically resolve to the latest version, and thus requires manual intervention. (cupertino_icon 2.0 was only released a couple of weeks ago, and is thus significantly newer than the 3.47 branch.)

  8. SwanFlutter commented on Oct 16, 2026

    @SwanFlutter
    Author
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    c: proposalteam-tooltool

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions