Flutter 3.50.2 Fixes Localization for Standalone Material and Cupertino
Your Flutter checkout can show “Pagar ahora” from the Spanish translation file while a built-in dialog still uses the wrong localization setup. App copy and framework labels are loaded through different delegates. Flutter 3.50.2 fixes the code generator that wires those delegates together for apps using the standalone Material and Cupertino packages.
What changed: When Flutter 3.50.2 regenerates an app’s localization code, it checks the dependencies declared in pubspec.yaml. That lets it choose the standalone design package’s delegates instead of always taking the older SDK route. The stable Windows and Linux archives were available on December 5 in India and bundle Dart 3.14.2. This is a patch for Flutter 3.50, not a new major release or a reason to rewrite working screens.
Why Spanish app text and dialog text can behave differently
When a team localizes a Flutter app, it owns strings like “Confirm payment,” “Order history,” or “Try again.” Those typically live in ARB translation files, and flutter gen-l10n turns them into Dart accessors such as AppLocalizations.of(context). The app’s design library also provides labels and behavior that the app does not own. A Material dialog, for example, can read its default confirmation label through MaterialLocalizations.
Seeing one kind of string translate is not proof that the other side is wired correctly. An app can select a Spanish resource for its own headline, yet only the migration of the framework delegates decides whether it can load the matching framework strings. This is why an English-only smoke test could miss trouble after the switch to standalone packages. English can continue to look correct while the team has not actually exercised the localized framework path.
The Flutter 3.50 transition moved Material and Cupertino design widgets into packages with release cycles separate from the SDK. In Flutter 3.50.1, the generator still produced the older SDK localization import and delegates. Teams that had already moved their screens to the new packages could therefore end up with generated localization code that did not match the rest of the app’s imports. Flutter 3.50.2 addresses that mismatch at generation time. If you have not migrated the widgets yet, start with the FlutterFever standalone design-package migration guide before evaluating this patch.
What Flutter 3.50.2 generates for each kind of app
The rule applies to declared app dependencies. An import in one widget is not how the tool decides, and the mere presence of a transitive package is not the decision rule. This matters if you are upgrading a monorepo with multiple apps using different design packages.
| What the app declares | Generator default in 3.50.2 | What to verify |
|---|---|---|
Standalone material_ui | Standalone Material delegates | Check an app string and a Material dialog or picker label. |
Standalone cupertino_ui, without material_ui | Standalone Cupertino delegates | Check an app string and a Cupertino framework control. |
| Both standalone packages | The Material branch is selected first | Verify both widget families if your app supplies custom or mixed delegates. |
| Neither standalone package | SDK localization path remains | Do not add a package just to reproduce the new branch. |
This is about generated defaults, not a guarantee about every screen. If your app sets localizationsDelegates itself, adds a third-party override, or wraps a subtree with different localization settings, the generator does not rewrite that runtime wiring. The generated file can still import flutter/widgets.dart; the presence of core widgets is not by itself a sign that the old design delegates are still being used.
What to check before merging the upgrade
- Record the actual SDK and app configuration. Check the Flutter version locally and in CI. Teams on a pinned toolchain should change their project’s pin deliberately; a generic upgrade command can install a different version on another day. Use the app directory that contains the relevant
pubspec.yamland localization configuration. - Regenerate and inspect rather than patching the generated file. Open the configured output, often
app_localizations.dart. Check the import and the default delegate list against the table above. If your generator uses a custom output path, inspect that file, not an old copy left in the repository. - Run analysis and the project’s tests. An ambiguous import often points to code that imports two versions of a localization symbol. Check which source owns the symbols for the screen instead of removing localization imports from the entire app.
- Test one real screen in two locales. Try your primary locale and a supported non-English locale. Read both an app-owned label and a framework-owned label. Verify them with the same build users will run, not just the default simulator locale.
flutter --version
flutter pub get
flutter gen-l10n
flutter analyze
For a Material example, open a dialog within the localized app and compare your translated screen heading with the default label exposed by MaterialLocalizations.of(context).okButtonLabel. Use a context below MaterialApp and a locale that appears in AppLocalizations.supportedLocales. “OK” can legitimately be identical in some languages, so choose a framework label whose expected translation actually differs for your chosen locale. This is a reader verification plan based on the tagged source, not a claim we ran your app.
Think of this as a small acceptance test. The first result proves your resources were picked up. The second probes the design library’s localization. If the app string is wrong too, inspect the resource files and locale resolution first. If only the framework string looks wrong, look at the installed delegates and their order before replacing translations. If a clean local build works but CI fails, compare the resolved Flutter versions and any committed generated output. These clues do not prove the cause, but they narrow down where to look.
Who should move first?
Prioritize the patch if your team already uses standalone Material or Cupertino and ships more than one language, especially if you added a workaround for the older generator. Keep that workaround until you understand why it exists, then remove only the part made redundant by the generated output and rerun the affected locales. Don’t manually remove flutter_localizations if other code still depends on it.
Use your normal patch queue for an app still on bundled design widgets and without a related regression. That app does not get a different localization branch from this fix alone. The FlutterFever migration checklist helps separate SDK work from UI-library work. The patch also lists a Windows crash during concurrent GPU work, Chrome test asset handling, Linux rendering fixes, and an iOS engine-shutdown crash. These are specific fixes, not evidence that every app is faster.
The takeaway: Flutter 3.50.2 fixes what the tool generates. The meaningful release check is whether a customer can navigate the same translated screen and its built-in dialogs without either falling back unexpectedly. Layer this onto your existing accessibility and localization checks rather than treating a green build as the whole test.
References
- Official Flutter stable archive manifest for Windows x64
- Flutter 3.50.2 tagged changelog
- Flutter 3.50.2 localization generator implementation
Frequently asked questions
Yes. The official stable Windows x64 archive lists Dart 3.14.2. Run flutter –version in the same environment that builds your app to check what you actually use.
Not for this generator fix alone. Keep your input translations unchanged on the first pass, regenerate the Dart output and compare which delegates are selected.
The Flutter 3.50.2 generator checks for standalone Material first. Check your own delegate list and test both kinds of controls if the app mixes widget families.
Core widgets and the chosen design-library localizations are separate imports. Look for the import and delegate expression that supply the localized framework labels.
Only after regenerating with the updated SDK and checking that the workaround is no longer needed. Test a supported non-English screen as well as English before you remove it.