ATL-2026-034engineering_noteexploratory

Material and Cupertino are leaving the Flutter SDK. What changes for your app?

What changes when Material and Cupertino become standalone packages, and how to check routing, localization, and third-party compatibility.

Published
November 18, 2026
Verified
November 17, 2026

Material and Cupertino are leaving the Flutter SDK. What changes for your app?

The order list still works. A tap opens the details and Back takes you to the list. After a router upgrade, one thing changes. The details screen used to slide in from the right. Now it appears instantly. The route still points to the same screen, so there is little to see in the route definition itself.

The order screen is a hypothetical example. The behavior comes from a Flutter issue report. On Flutter 3.47.4 and go_router 18.0.1, a test used GoRoute.builder and expected a MaterialPage. It got a NoTransitionPage, which opens without a transition. The router upgrade had left it unable to recognize the SDK's root MaterialApp. Issue and reproducing test

An app can have custom buttons, fields and panels for years and still rely on Material to decide how a screen opens. In this case the dependency became visible when the app and the router started importing Material from different places.

What moved out of the SDK?

Material and Cupertino are available as standalone packages, material_ui and cupertino_ui. Flutter 3.47 let teams opt in. Flutter 3.50 deprecated the bundled libraries, and the old imports are still available. The standalone packages have their own release cycles. A fix to a calendar widget can now be a separate upgrade from a Flutter SDK update. Flutter migration guide

An app can move to the packages and look much as it did before. The two MaterialApp classes are still distinct Dart types. The same applies to the two CupertinoApp classes and to their library-specific themes and localization delegates. The constructor call can look identical. Its import determines which type it creates.

import 'package:flutter/material.dart' as sdk;
import 'package:material_ui/material_ui.dart' as standalone;

sdk.MaterialApp buildSdkApp(sdk.RouterConfig<Object> router) =>
    sdk.MaterialApp.router(routerConfig: router);

standalone.MaterialApp buildStandaloneApp(sdk.RouterConfig<Object> router) =>
    standalone.MaterialApp.router(routerConfig: router);

In the reported configuration, go_router looks for an ancestor widget of the exact MaterialApp type. In 18.0.0 it switched its import to material_ui. The SDK widget no longer matches, so the router can fall back to a page with no transition. The screen itself can be made entirely of custom widgets and still get that result. As of 17 November, the issue was closed and the pull request to recognize both implementations was still open. Check the changelog against the version going into your build. The change in go_router 18.0.0 · Proposed compatibility fix · Changelog

Where a custom design system still relies on Material

A component catalog is a good place to see buttons and fields. Some of the dependencies show up only in use. What makes an order screen slide in? Where does a date picker's confirmation label come from? How does a text-selection menu know to display “Copy” as “Copier” in French?

When selectable switched to the standalone libraries, its public API did not change. It already avoided Material types in its signatures. Its selection menu still reads a theme and localized labels from the widget tree. The package author documented a No MaterialLocalizations found error when opening that menu under the old Material setup. The app can build and the screen can render. Select a word and try to copy it, and the difference becomes visible. selectable 0.7.0 changelog

A design system can expose the dependency in its own API, too. Suppose an order screen has an OrderTheme.fromMaterial(ThemeData theme) helper. The parameter is tied to the import used by its author. If it expects the SDK's ThemeData, an app that now uses material_ui cannot pass its theme into that helper.

If all the component needs is a selection color and a text color, it can accept those values directly. The app can pull them from its own theme. An adapter is still worthwhile for consumers that want to build the whole order theme from ThemeData. Only that adapter then needs to know which Material library the app uses. Flutter guidance for package authors

Decide what needs to move together

To keep the existing look and behavior, check the root app, the router and any libraries that read themes or localizations from the widget tree. See what is in the project before applying the automated import fix.

rg -n 'package:(flutter/(material|cupertino)\.dart|material_ui/|cupertino_ui/)' -g '*.dart' .
flutter pub deps --style=compact
dart fix --dry-run --code=migrate_design_widgets

The first command finds references in the source tree it searches, including local packages in a monorepo. The second shows the dependency graph. A package listing Flutter as a dependency can still import the old Material library. For packages that provide routes, dialogs or text inputs, check the imports and changelog for the resolved version. pub deps · dart fix

An app on the standalone packages can wrap a legacy subtree in MaterialUiCompatibilityBridge or CupertinoUiCompatibilityBridge. This gives descendants access to the old theme and localization through their context. A method that takes the old ThemeData still needs a compatible adapter or an upgraded library. A router that checks the root widget's exact type will still make that check. Material bridge limits · Cupertino package docs

Check the root app's localization setup too. Delegates supply translations used by the widgets themselves, such as date-picker labels. The design delegates now come from the standalone libraries. A MaterialApp can use GlobalMaterialLocalizations.delegates from material_ui, which includes the Cupertino and base Flutter delegates. Keep the delegates for the app's own translations as well. Test a mixed flow, such as opening a Cupertino dialog from a Material page. Localization migration

WidgetsApp is an option if the team wants to drop its direct dependency on both design libraries. Someone then has to supply the theme, route transitions and any dialogs or menus that used to come ready-made. Removing those packages from the full dependency graph is a separate job. Start with behavior the product actually wants to own. WidgetsApp API

Before releasing, open an order and go back on Android and iOS. Open a date picker in another language and confirm a date. Select and copy text from a third-party widget. If the app navigates within tabs, check those routes too, especially when a shared element animates between screens with Hero. In a report on go_router 18.0.0, the animation stopped on nested routes while it still worked on the root navigator. Nested-route Hero report

When a release changes imports and dependencies, the order screen on iOS should still open as it did before, and the selection menu should still speak the user's language. If the team also wants to take ownership of route transitions, that is a decision about the product. Which screen should open differently, and what would the person using it gain?


ArkTelos Lab · Lab website · Official ArkTelos website

Telegram · ArkTelos Lab EN · ArkTelos Lab RU · ArkTelos EN · ArkTelos RU

Result boundaries

  • The order example is hypothetical. The analysis relies on source code, documentation, and published reports rather than an original experiment.

Telegram edition

Read in ArkTelos Lab

Read in ArkTelos Lab ↗

ARKTELOS CHANNELS

News and engineering material, without mixing languages.

The main channels cover ArkTelos development. ArkTelos Lab publishes architecture analysis, experiments, and reproducible research.