ButtonTextTheme should have onPrimary option #46715
Labels
c: new feature
Nothing broken; request for a new capability
f: material design
flutter/packages/flutter/material repository.
framework
flutter/packages/flutter repository. See also f: labels.
ButtonTextTheme
should have aonPrimary
(and etc.) option, just likecolorScheme
has, this way the text inside aRaisedButton
with a primary color and the background, would automatically get the right color for it's text, which is usually white or black, depending on the luminescence of the color, even if theThemeData.brighness
doesn't match the primary color.Also, adding the option to set the actual color for text inside a button and thus be able to override any other options would be very much welcome.
The text was updated successfully, but these errors were encountered: