← All writing

Flutter 3.50 upgrade checklist: breaking changes and fixes

Flutter 3.50 is due this month. Every breaking change with before-and-after code, what Dart 3.14 changes, and commands to find affected code in your app.

Flutter 3.50 is scheduled to reach stable this month. The third beta, 3.50.0-0.3.pre with Dart 3.14.0, came out on October 29, the same day as the 3.47.9 stable hotfix. That makes this a good week to find out what the upgrade will break in your app, while you still have time to fix it calmly.

Most Flutter upgrades are uneventful. This one has a few changes that do not show up as compile errors: Android release builds that quietly ignore launch data, text that renders a little wider, and a web app that suddenly draws behind the notch. Those are the ones that reach users if nobody checks.

This checklist covers everything on the official breaking changes list that is waiting for stable, plus Dart 3.14. We first wrote about the beta in our late-October roundup; this post is the practical version, with code.

The short version

Change Who is affected Shows up as
Stricter Android Intent checks Apps that pass routes, entrypoints or cached engine IDs in Intent extras Wrong start screen in release builds
Engine flags ignored in Android release Apps or CI that pass engine flags at launch Flags silently dropped, or a CLI error
Soft hyphens are drawn Text containing U+00AD; overrides of getParagraphStyle Wider lines, failing goldens, a compile error
WidgetSpan order in right-to-left text Apps with workarounds for inline widgets in Urdu, Arabic or Hebrew Inline widgets in the wrong place
Web viewport-fit=cover works Web apps that already set it Content behind the notch on phones
DropdownButton.enabled Code that disables dropdowns with onChanged: null Nothing breaks; a cleaner API
material_ui and cupertino_ui Every app, eventually Deprecation warnings when the SDK copies are deprecated

The first five are confirmed in the 3.50 betas. The last two are listed as “not yet released to stable” without a confirmed version, so treat them as coming soon rather than certain for 3.50.

Before you start: move to 3.47.9

Upgrade one step at a time. Get onto the current stable first, so that any problem you see on the beta is really a 3.50 problem.

3.47.9 is a small hotfix. According to the Flutter changelog, it:

  • stops flutter_tools crashing on Windows when a path is longer than MAX_PATH, and shows a proper error instead;
  • fixes flutter test crashing with a StateError while compiling native assets in pub workspaces, monorepos and symlinked folders;
  • adds an extensible ContextMenuButtonKind, so packages can add text-selection actions such as Translate without breaking your exhaustive switch on ContextMenuButtonType.

If you are still on 3.47.7 or older, 3.47.8 matters more: it is the security release that blocks the compromised eMudhra certificates in dart:io. Ship it.

Then try the beta on a branch:

flutter channel beta
flutter upgrade
flutter --version   # 3.50.0-0.3.pre, Dart 3.14.0

With FVM, keep stable as the project default and point a branch at the beta instead: fvm use beta.

1. Android: stricter Intent checks for entrypoints

What changes. In release builds, FlutterActivity and FlutterFragmentActivity now check who sent an Intent before they read these extras: the initial route ("route"), the Dart entrypoint and its arguments, and cached engine IDs. If the sender is not your own app and the activity is exported, the extras are ignored and Flutter falls back to the manifest values, or to "/" and main.

This closes a real hole: any other app on the phone could open your app on a screen of its choosing. Debug and profile builds skip the check, so your tests will pass and the release build will still behave differently.

Who is affected. Apps that launch Flutter screens with those extras, typically add-to-app projects and apps with native notification or widget code. If your Flutter activity is not exported, or you never set those extras, nothing changes.

How to fix it. Pick the option that matches how the screen is opened:

  • Only your own app opens it: mark the activity android:exported="false". Keep your launcher activity exported.
  • Other apps or links open it: use a deep link with a matching <intent-filter> instead of the route extra.
  • The route or entrypoint is fixed: declare it in the manifest.
<activity
    android:name=".MyFlutterActivity"
    android:exported="true">
    <meta-data
        android:name="io.flutter.Entrypoint"
        android:value="myCustomEntrypoint" />
    <meta-data
        android:name="io.flutter.InitialRoute"
        android:value="/customRoute" />
</activity>

On Android 13 and older, a launch from inside your own app can be verified only if you start it with startActivityForResult(), which fills in the calling package. On Android 14 and newer, Flutter compares the launching app’s UID instead. The migration guide has a fifth option, overriding getDartEntrypointFunctionName() in a subclass, for entrypoints chosen at runtime.

2. Android: engine flags are ignored in release builds

What changes. Release builds now discard engine flags passed through Intent extras and log a warning. flutter run --release --use-application-binary with engine flags now stops with an error, because a prebuilt binary’s manifest cannot change after it is built. getFlutterShellArgs is deprecated in favour of getFlutterEngineFlags().

Who is affected. Mostly CI pipelines, benchmark scripts and Bazel-style builds that start release APKs with adb shell am start and flags. Ordinary flutter build apk and flutter build appbundle are not affected.

How to fix it. Benchmark in profile mode, which still accepts runtime flags. For flags a release build really needs, declare them in the manifest under <application>:

<meta-data
    android:name="io.flutter.embedding.android.DartFlags"
    android:value="--some-dart-flag" />

Or set them in code if you host Flutter yourself:

class MyFlutterActivity : FlutterActivity() {
    override fun getFlutterEngineFlags(): List<String> {
        val flags = super.getFlutterEngineFlags().toMutableList()
        flags.add("--trace-startup")
        return flags
    }
}

3. Soft hyphens are now drawn

What changes. When a line breaks at a soft hyphen (U+00AD), Flutter now draws a visible -, as browsers and word processors do. Before, it broke the word with no hyphen, so the word looked cut off. A new Hyphens enum controls this: Hyphens.manual (the default) draws it, and Hyphens.hidden keeps the old look.

Line breaks stay in the same places, but a line with a hyphen is slightly wider. That can change the size of text laid out with TextWidthBasis.longestLine, and it will change golden images for any text with soft hyphens. The web gets this in a later release.

The guide is honest about rough edges in 3.50: the hyphen can appear where the line does not actually break at it, can stick out slightly past the paragraph width, and is not highlighted when selected. TextField and SelectableText draw it too, and cannot opt out yet.

How to fix it. If you do not want the new look yet:

Text('inter­national', hyphens: Hyphens.hidden)

If you have a class that overrides TextStyle.getParagraphStyle, usually a test double or a proxy, it will not compile until you add the new parameter:

@override
ui.ParagraphStyle getParagraphStyle({
  TextAlign? textAlign,
  // ...other parameters...
  StrutStyle? strutStyle,
  Hyphens? hyphens,
}) {
  // Pass hyphens on if you forward to another getParagraphStyle.
}

Text from a CMS or translators often carries soft hyphens you never typed, particularly in German, Dutch and Finnish. Search your translation files as well as your code.

4. WidgetSpan order in right-to-left text

What changes. Inline widgets (WidgetSpan) inside right-to-left or mixed-direction text now appear in the correct visual order. Previously they were placed in source order even when the surrounding text was reordered, which put icons and badges in the wrong place in Urdu, Arabic and Hebrew text. The bug was issue 54400, open for years.

Who is affected. Only apps that worked around the old behaviour: reversing spans for RTL, nudging widgets with Transform.translate, or mirroring placeholder coordinates. Those workarounds now move things to the wrong place.

How to fix it. Delete the workaround and keep spans in reading order:

// Before: compensating for the old order
WidgetSpan(
  child: Transform.translate(
    offset: rtlSwapOffset,
    child: inlineWidget,
  ),
)

// After
WidgetSpan(child: inlineWidget)

Then test RTL screens with wrapped lines, and update the goldens that captured the old layout.

5. Flutter web: viewport-fit=cover now works

What changes. Flutter web used to strip viewport-fit=cover from your viewport meta tag and always report zero safe-area padding. In 3.50, if web/index.html sets it, Flutter keeps it and fills MediaQuery.paddingOf and SafeArea from the browser’s safe-area insets.

Who is affected. Only web apps whose index.html already contains viewport-fit=cover. They will start drawing edge to edge, behind notches and the home indicator on phones.

How to fix it. Either keep edge-to-edge and wrap the content in SafeArea, or remove the setting:

<meta name="viewport" content="width=device-width, initial-scale=1.0">

6. DropdownButton gets an enabled property

What changes. DropdownButton and DropdownButtonFormField get an enabled property, and onChanged is no longer required. Disabling a dropdown by passing onChanged: null keeps working, so nothing breaks. The guide lists it as not yet landed, so it may arrive after 3.50.

How to fix it. dart fix --apply migrates the simple cases. The conditional case is manual. Note that the official guide’s “after” example for this case passes onChanged twice, which does not compile; this is the intended version:

// Before
DropdownButton<String>(
  value: selected,
  items: items,
  onChanged: canEdit ? (value) => setState(() => selected = value) : null,
)

// After
DropdownButton<String>(
  value: selected,
  items: items,
  onChanged: (value) => setState(() => selected = value),
  enabled: canEdit,
)

7. Plan the move to material_ui and cupertino_ui

What changes. Since Flutter 3.47, Material and Cupertino are also published as standalone packages, material_ui and cupertino_ui. Their 1.0.0 code matches the framework copies, which have been frozen since 3.44. The copies inside the SDK are scheduled for formal deprecation in an upcoming stable release. The guide does not say which one.

Nothing forces you to migrate for 3.50. But every new Material fix now lands in the packages, not the SDK, so the sooner you move, the sooner you get them. We explain the reasons in Flutter 3.47: why Material and Cupertino left the SDK.

How to do it.

dart fix --apply --code=migrate_design_widgets
flutter pub add material_ui cupertino_ui   # if dart fix did not add them
dart fix --apply                           # sorts imports and tidies up

That changes import 'package:flutter/material.dart'; to import 'package:material_ui/material_ui.dart'; throughout. If you use localizations, the delegates now come from the package, and one list covers Material, Cupertino and Widgets:

MaterialApp(
  localizationsDelegates: GlobalMaterialLocalizations.delegates,
  // ...
)

If a dependency still imports the old library, wrap your app with MaterialUiCompatibilityBridge in MaterialApp.builder so it keeps reading your theme and localizations. The bridge cannot fix type mismatches: you cannot pass a ColorScheme from material_ui to a package that expects the one from flutter/material.dart. That package has to migrate first.

If you publish a package, switching it to material_ui is a breaking change for your users. Release it as a new major version.

What Dart 3.14 changes

Flutter 3.50 brings Dart 3.14. Its changelog has no new language features, so it is a tooling and library release:

  • dart migrate raises your packages’ SDK lower bound one minor version at a time. Run dart migrate --dry-run first. The optional cleanup step, which rewrites code to use newer syntax, only runs if you ask for it.
  • Isolate.runSync and related APIs are removed. They were exposed by accident in 3.13. If any code uses them, it will not compile.
  • dart:mirrors is deprecated. Flutter apps cannot use it anyway, but some server and command-line tools in a monorepo might.
  • On macOS, Process.start uses posix_spawn, and program lookup uses the parent’s PATH. Build scripts that start tools by short name may need absolute paths.

If you are raising your SDK constraint at the same time, our Dart tricks for 2026 shows which newer language features are worth adopting once you do.

Find affected code in five minutes

Run these from the root of your Flutter project. Any match is worth a look before you upgrade:

# 1. Intent extras for routes, entrypoints and cached engines
grep -rnE "EXTRA_INITIAL_ROUTE|EXTRA_DART_ENTRYPOINT|EXTRA_CACHED_ENGINE|\"route\"|cached_engine_id" android/

# 2. Engine flags passed at launch (also check CI scripts)
grep -rnE "getFlutterShellArgs|use-application-binary|am start" android/ .github/ scripts/ 2>/dev/null

# 3. Soft hyphens and getParagraphStyle overrides
grep -rnE "u00AD|getParagraphStyle" lib/ test/
LC_ALL=C grep -rl $'\xC2\xAD' lib/ assets/ 2>/dev/null   # literal soft hyphens

# 4. RTL WidgetSpan workarounds
grep -rn -A3 "WidgetSpan" lib/ | grep -E "Transform.translate|reversed"

# 5. viewport-fit on the web
grep -n "viewport-fit" web/index.html

# 6. Dropdowns to review for the new enabled property
grep -rn "DropdownButton" lib/

# Dart 3.14
grep -rnE "Isolate\.(runSync|create|shutdownSync)|dart:mirrors" lib/ bin/ tool/ 2>/dev/null

The commands work in bash and zsh on macOS and Linux. On Windows, run them in Git Bash or WSL.

The upgrade checklist

  1. Upgrade to 3.47.9, run your tests, and ship it.
  2. Create a branch and switch it to the 3.50 beta.
  3. Run the searches above and fix what they find.
  4. Run flutter test, and regenerate goldens only after you have looked at each diff. Soft hyphens and RTL inline widgets should be the only expected changes.
  5. Build a release APK and test it on a real Android device. Open every screen you can reach from a notification, a home-screen widget, a share sheet or a deep link. This is where change 1 shows up, and debug builds will not show it.
  6. For web apps, open the release build on a phone with a notch and check the edges.
  7. Decide when to move to material_ui. A small app can do it in the same branch; a large one may prefer its own pull request.
  8. When 3.50 reaches stable, switch the branch to stable, run everything once more, and merge.

If you would rather hand the upgrade to someone who does this every quarter, Feemag handles Flutter upgrades and Play Store and App Store releases.

FAQ

When will Flutter 3.50 be released?

The Flutter SDK archive lists November 2026 for 3.50, with the branch cut on October 6. The third beta came out on October 29. Google does not publish an exact day in advance.

Do I have to migrate to material_ui for Flutter 3.50?

No. The framework copies of Material and Cupertino still work. They are scheduled to be deprecated in an upcoming stable release, which will add warnings, not remove them. Migrating early gets you the fixes that now land only in the packages.

Will my app break if I do nothing?

Most apps will build and run. The risks are behavioural: Android screens opened from outside the app with Intent extras will start on the default route in release builds, web apps that set viewport-fit=cover will draw behind the notch, and golden tests with soft hyphens or RTL inline widgets will fail.

Is 3.47.9 worth installing if 3.50 is weeks away?

Yes if you use pub workspaces or develop on Windows, because it fixes two flutter_tools crashes. And if you are below 3.47.8, upgrade now for the certificate security fix.

Sources

Something to add? I’d love to hear it.

Let’s talk about it ↗