-
-
Notifications
You must be signed in to change notification settings - Fork 105
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
TextTheme Color not Working in V7 #151
Comments
Hi @theTello, Thanks for the issue report. Can you provide the above textTheme: TextTheme(
titleLarge: TextStyle(...),
) |
Hello @rydmike
|
Thanks, I will look into tonight when I'm not at the day job 😄 |
Confirmed, it is a regression bug. I thought I had a test case for this usage, but apparently not. Will be adding tests that will hit and test this use case and then applying a fix. Are you OK with using latest Flutter 3.10 release? Because I probably wont't be back porting this fix to FlexColorScheme v7.0.x. It will only come to latest as FlexColorScheme 7.1.1. Nice find and thanks for the issue report. |
Okay, I'm comfortable with flutter 3.10.0, Really appreciate all the efforts you're putting in, thank you so much |
Sorry the fix is taking a bit longer than I thought. It turned out to be a bit bigger than I anticipated. Would have been easy to just revert. However, I also wanted to keep the feature that automatically give GoogleFont's default textTheme the correct contrast color automatically in FlexColorScheme, while also of course allowing for custom colors, like your case. I have it all figured out and fixed now, with test for the regression and the new revised GoogleFonts default TextTheme color fix. The test for the regression and additional workaround for the While doing all this, I also started thinking that Well I say perhaps, because if/when it is used in ThemeData created, it needs a color. Still going to raise an issue that maybe there should be a new null option suitable for use in Anyway, I want to have the If |
I have now also added the described GoogleFonts color issue to the GoogleFonts repo. The one about the strange hard coded color and need to work around it when using it in ThemeData to get correct default colors. I added a ref to it in the change log for this issue as well. The GoogleFonts issue can be found here material-foundation/flutter-packages#401 if you want to take a look. I have not idea if it is something Material team is willing to change. It is not relevant for the solution of this issue, only for my workaround to deal with the GoogleFonts color issue. I do however think my workaround can remain as is as well. Plus it is another convenience of FlexColorScheme when combined with GoogleFonts, that vanilla ThemeData users will not have, unless Material team fixes/change GoogleFonts as I suggested in the issue. I am ready to release this fix. will do this evening, after some sleep, so I can double check everything once more with fresh eyes. But it is ready to go 😄 |
Version 7.1.1 with the fix is up on pub, web apps (Playground) still being built by GitHub actions CI/CD, but should be up in 15 mins or so. Changelog: |
After upgrading to v7 of flex color scheme, text colors defines for various TextThemes don't get applied and I have
In order to get it to work I have to specify the color as seen below. This wasn't the issue in V6 of flex color scheme however.
The text was updated successfully, but these errors were encountered: