-
-
Notifications
You must be signed in to change notification settings - Fork 872
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
Comments
Looks like this is an issue in flutter_html/lib/src/style.dart Line 280 in 79ec194
|
Thanks @michalsrutek, I solved using |
I have having this issue.
That's on |
Hello, I found why it cause by naming arguments of fromThemeData() because 'package:flutter/material.dart' change name of this : It's now (2022-08-18) here :
How can i override this function for fixing temporary this bug ? |
@julienmiclo , could be fixed using 3.0.0-beta.2 version of the package ;) |
Looking at this PR (https://github.com/flutter/flutter/pull/109817/files#diff-a8a9a3cded64a0f45ac193fd0d6654c2c8ede69600c4c0773a282a68169a6dbd) I created an extension file that adds the backward compatibility. Just add this files to your project and import wherever you get the error. |
If I upgrade to 3.0.0-beta.2 it solves the getter errors, but creates a bigger problem for me as I'm using CustomRender all over the place. And almost all the errors are pointing to flutter_html libs, not my code. As the docs are currently pretty sparse on how to migrate from using CustomRender, I forked alpha.6 and added @chtgupta's fix to keep my app running. pubspec.yml:
|
Describe the bug:
Upon upgrading Flutter to 3.22, we're getting
as it has been deprecated for a long time and finally removed in this release.
Expected behavior:
No build errors.
Stacktrace/Logcat
A picture of a cute animal (not mandatory but encouraged)
The text was updated successfully, but these errors were encountered: