Flutter Material and Cupertino Decoupling: What Changed and How to Migrate Your App

Flutter's Material and Cupertino libraries now live in the material_ui and cupertino_ui packages. What changed, why, and how to migrate with dart fix.

One of the most significant structural changes in Flutter's history is now available to every developer. Flutter's Material and Cupertino design libraries — the widgets behind almost every Flutter app — have moved out of the Flutter SDK and into standalone packages on pub.dev: material_ui and cupertino_ui.

The Flutter team announced on 9 September 2026 that the decoupled packages are live at version 1.0.0, matching the state of each library inside the framework. The in-framework libraries are frozen and will eventually be deprecated and removed. Here is what changed, why it matters, and how to migrate your app.

What Changed?

Until now, import 'package:flutter/material.dart'; and import 'package:flutter/cupertino.dart'; pulled the design libraries straight from the Flutter SDK. Their code shipped with — and only updated with — Flutter itself.

  • Contributions to the Material and Cupertino libraries inside the framework are frozen.
  • The libraries now live as material_ui and cupertino_ui on pub.dev, open for contributions since 13 August 2026.
  • At a future date, the framework copies will be deprecated and eventually removed. No removal date has been announced yet.

Why Flutter Decoupled Material and Cupertino

1. Upgrading Flutter no longer forces UI changes

Previously, upgrading Flutter to get a security patch or performance fix also pulled in visual changes to Material and Cupertino widgets. Teams with carefully tested UIs often delayed upgrades to avoid unexpected design shifts. With separate packages, you can update the engine and framework while pinning your design library version — or vice versa.

2. Faster fixes for design bugs

Stable Flutter releases arrive roughly every three months. Standalone packages can ship on their own, much faster schedule, so a visual bug in a Material widget no longer has to wait for the next SDK release.

3. A healthier foundation for every design system

Building Material and Cupertino on top of the core widgets library exposed gaps in that foundation. Separating them pushes the Flutter team to fill those gaps — which benefits anyone building a custom design system, not just Material users.

How to Migrate Your Flutter App

The Flutter team expects migration to be a drop-in change for most apps, using the dart fix tool.

  1. Upgrade to a current stable Flutter release and commit your work so you can review the diff.
  2. Run dart fix --apply in your project. The fix adds material_ui and/or cupertino_ui to your pubspec.yaml at version 1.0.0 and rewrites your imports to the new packages.
  3. Review the changes. Confirm the dependencies were added and that your imports now reference the standalone packages instead of package:flutter/material.dart and package:flutter/cupertino.dart.
  4. Run your test suite and golden tests. Because 1.0.0 matches the framework's state, you should see no visual changes — goldens are the fastest way to prove it.
  5. Check your dependencies. Plugins and packages you depend on will migrate on their own schedules. Keep them up to date and report problems to their maintainers.

If dart fix does not handle your case, the official migration guide on docs.flutter.dev covers the details, and issues can be filed on the Flutter GitHub repository.

What This Means for Teams Building with Flutter

For product teams, the decoupling has practical upsides:

  • Safer upgrades. Security and performance fixes can be adopted quickly without an accompanying design review.
  • Pinned design versions. Large apps can lock their UI library version across a release cycle and update deliberately.
  • Custom design systems are first-class. Material becomes one option among many, rather than a privileged part of the SDK. Brands that want a distinctive look can build directly on the core widgets layer.

The main cost is a little more dependency management: material_ui and cupertino_ui versions now appear in your pubspec.yaml and should be part of your regular update routine.

Should You Migrate Now?

For actively maintained apps, yes — migrate on your next routine Flutter upgrade. The change is designed to be mechanical, 1.0.0 matches the framework's behaviour, and every future fix to Material and Cupertino will land in the standalone packages, not in the frozen framework copies. Migrating early means you are never stuck waiting on a deprecation deadline.

Frequently Asked Questions

What are material_ui and cupertino_ui?
They are the standalone pub.dev packages that now contain Flutter's Material and Cupertino design libraries, previously shipped inside the Flutter SDK.
Will my Flutter app break if I do not migrate?
Not immediately. The framework copies are frozen but still present. They are planned for deprecation and eventual removal, so migrating during a routine upgrade is the safest approach.
How do I migrate?
Run dart fix --apply in your project. It adds the new packages to pubspec.yaml at version 1.0.0 and updates your imports. Then run your tests and review the diff.
Will my app look different after migrating?
It should not. Version 1.0.0 of each package matches the state of the library inside the framework. Visual changes will only arrive when you choose to upgrade the packages.

Sources