Repository navigation
Closed
flutter/packages
#13006Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listhas reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onp: google_fontsPackage to use fonts from fonts.google.com. Supports HTTP fetching, caching, and asset bundling.Package to use fonts from fonts.google.com. Supports HTTP fetching, caching, and asset bundling.p: material_uimaterial_ui package in flutter/packagesmaterial_ui package in flutter/packagespackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.r: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionteam-designOwned by Design Languages teamOwned by Design Languages teamtriaged-designTriaged by Design Languages teamTriaged by Design Languages team
Description
Steps to reproduce
- Try to run the following code
- Compilation error
Expected results
Expected result: ThemeData.textTheme should accept GoogleFonts.pangolinTextTheme() without a type mismatch, as it did previously.
Actual results
The argument type 'TextTheme' can't be assigned to the parameter type 'TextTheme?'.
Code sample
Code sample
import 'package:material_ui/material_ui.dart';
import 'package:google_fonts/google_fonts.dart';
void main() {
runApp(
MaterialApp(
theme: ThemeData(
textTheme: GoogleFonts.pangolinTextTheme(),
),
home: const Scaffold(
body: Center(
child: Text('Hello'),
),
),
),
);
}Screenshots or Video
Logs
Logs
The argument type 'TextTheme' can't be assigned to the parameter type 'TextTheme?'. Flutter Doctor output
Doctor output
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel master, 3.48.0-1.0.pre-178, on macOS 26.6.1 25G76 darwin-arm64, locale en-IN)
[✓] Android toolchain - develop for Android devices (Android SDK version 36.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 26.6)
[✓] Chrome - develop for the web
[✓] Connected device (2 available)
[✓] Network resources
• No issues found!Reacted by swch01, Piero Alessandro Soria Ysasi, Tagir, KNoT, Wisp, JEROME JUMAH, Chikamatsu Kazuya, Lars Werner, Tirth, jakobaltendorfer and 4 more
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listhas reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onp: google_fontsPackage to use fonts from fonts.google.com. Supports HTTP fetching, caching, and asset bundling.Package to use fonts from fonts.google.com. Supports HTTP fetching, caching, and asset bundling.p: material_uimaterial_ui package in flutter/packagesmaterial_ui package in flutter/packagespackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.r: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionteam-designOwned by Design Languages teamOwned by Design Languages teamtriaged-designTriaged by Design Languages teamTriaged by Design Languages team

Activity
[-]material_ui TextTheme conflict after Flutter/package update - previously working[/-][+]material_ui TextTheme conflict after Flutter/package update - previously working [google_fonts][/+]mbcorona commentedon Aug 13, 2026
Thanks for the detailed report. Routing to the design team for evaluation.
piedcipher commentedon Aug 13, 2026
Thanks for the fast triage!
Piinks commentedon Aug 13, 2026
The compatibility bridge should be able to help with this, it will map over ThemeData properties to cover the gap for dependencies that have not migrated yet.
google_fonts needs to be migrated to use the new design packages, we should be able to do that soon.
suhail-121 commentedon Aug 15, 2026
But compatibility bridge won't help because it takes modern Theme and converts it to legacy Theme, so maybe we have to do what compatibility bridge does. something like:
hope this works.
Jerome-Jumah commentedon Aug 17, 2026
@Piinks Hey, is this issue currently being worked on? It's my first time here, and I'd be happy to try and help out if it's not a WIP!
Segatti commentedon Aug 18, 2026
I opened the PR, but I’m not sure when it will be approved. If you want to use it, you can add it like this for now:
google_fonts:
git:
url: https://github.com/Segatti/flutter_packages.git
path: packages/google_fonts
chore: Migrate to flutter 3.47.0
4 remaining items
Add design migration guide (#13821)
Add design migration guide (#13821)
[google_fonts] Migrate to material_ui & cupertino_ui (flutter#13006)
github-actions commentedon Oct 12, 2026
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.