Skip to content
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

CupertinoElevatedButtonData should allow to set the primaryContrastingColor #462

Open
martin-braun opened this issue Jun 3, 2024 · 0 comments

Comments

@martin-braun
Copy link

martin-braun commented Jun 3, 2024

CupertinoElevatedButtonData.color is useful to change the background of a PlatformElevatedButton on Cupertino when cupertino.originalStyle: false. However when trying to change the foreground, nothing can be done.

CupertinoElevatedButtonData should allow to set the primaryContrastingColor that would get passed in here:

data: themeData.copyWith(primaryColor: color),

We might just call it contrastingColor. The only way to bypass this issue right now is to either wrap PlatformElevatedButton into your own CupertinoTheme or modify the colors of the children directly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant