primaryContrastingColor property
final
A color that must be easy to see when rendered on a primaryColor background.
For example, this color is used for a CupertinoButton's text and icons when the button's background is primaryColor.
If coming from a Material Theme and unspecified, primaryContrastingColor
will be derived from the Material ThemeData's colorScheme.onPrimary
.
See also:
- MaterialBasedCupertinoThemeData, a CupertinoThemeData that defers primaryContrastingColor to its Material Theme parent if it's unspecified.
Implementation
final Color? primaryContrastingColor;