flutter_platform_widgets icon indicating copy to clipboard operation
flutter_platform_widgets copied to clipboard

`CupertinoElevatedButtonData` should allow to set the `primaryContrastingColor`

Open martin-braun opened this issue 1 year ago • 0 comments

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:

https://github.com/stryder-dev/flutter_platform_widgets/blob/216d5e245854e9c852ca3416b36ca9de0d9e92b4/lib/src/platform_elevated_button.dart#L194

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.

martin-braun avatar Jun 03 '24 03:06 martin-braun