Repository navigation
Description
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:
- 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.
- 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)
- App:
flutter create --template=packagegenerates noexample/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-versionsafter creating a project, which fixes dependency constraints but must be repeated for every new project. - Manually running
flutter create exampleinside 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 createcommand itself.
Proposal
Update the flutter create templates so that a freshly generated project is already up to date and needs no manual fixes:
-
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.
-
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.
-
flutter create --template=packagegenerates a minimalexample/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
SwanFlutter commentedon Oct 15, 2026
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!
saurabh-mirajkar commentedon Oct 15, 2026
@SwanFlutter Thanks for the detailed proposal. Routing this for the team for further investigation.
[-]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[/+]SwanFlutter commentedon Oct 15, 2026
stuartmorgan commentedon Oct 15, 2026
These are not outdated; ^2.0.8 includes 2.1.8, and ^1.0.0 includes 1.1.1.
This is the only one that will not automatically resolve to the latest version, and thus requires manual intervention. (
cupertino_icon2.0 was only released a couple of weeks ago, and is thus significantly newer than the 3.47 branch.)SwanFlutter commentedon Oct 16, 2026
[flutter_tools] Bump cupertino_icons to ^2.0.0 in app and module temp…