Add bodyFontFamily
and displayFontFamily
to TextTheme.apply()
#148510
Labels
c: new feature
Nothing broken; request for a new capability
c: proposal
A detailed proposal for a change to Flutter
f: material design
flutter/packages/flutter/material repository.
framework
flutter/packages/flutter repository. See also f: labels.
P3
Issues that are less important to the Flutter project
team-design
Owned by Design Languages team
triaged-design
Triaged by Design Languages team
Use case
When calling
ThemeData.apply()
we are able to define two different colors, separating base text from emphasized large text.From https://stackoverflow.com/a/49287410/1540350:
I like this separation and would enjoy to have the same consistent experience for the font family, however there is only
apply
'sfontFamily
, so in order to make this separation with fonts, I have to construct some crazy tree:Ugh, I'm not a fan of that.
Proposal
Something like this would satisfy me:
Only if the specific value is not set, it should fallback to the more generic
fontFamily
to avoid breaking changes.Thank you!
The text was updated successfully, but these errors were encountered: