Skip to content

CupertinoElevatedButtonData should allow to set the primaryContrastingColor #462

@martin-braun

Description

@martin-braun

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions