Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Error: The getter 'headline1' isn't defined for the class 'TextTheme'. after upgrading to Flutter 3.22 #1422

Open
michalsrutek opened this issue May 14, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@michalsrutek
Copy link
Contributor

Describe the bug:

Upon upgrading Flutter to 3.22, we're getting

flutter_html-3.0.0-alpha.6/lib/style.dart:253:51: Error: The getter 'headline1' isn't defined for the
class 'TextTheme'.

as it has been deprecated for a long time and finally removed in this release.

Expected behavior:

No build errors.

Stacktrace/Logcat

flutter_html-3.0.0-alpha.6/lib/style.dart:253:51: Error: The getter 'headline1' isn't defined for the
class 'TextTheme'.
Screenshot 2024-05-14 at 6 33 18

A picture of a cute animal (not mandatory but encouraged)

Screenshot 2024-05-14 at 6 33 51
@michalsrutek michalsrutek added the bug Something isn't working label May 14, 2024
@michalsrutek
Copy link
Contributor Author

Looks like this is an issue in 3.0.0-alpha.6, but not an issue in 3.0.0-beta.2 - as can be seen here -

static Map<String, Style> fromThemeData(ThemeData theme) => {

@TheManuz
Copy link

Thanks @michalsrutek, I solved using 3.0.0-beta.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants