stryder-dev / flutter_platform_widgets

Target the specific design of Material for Android and Cupertino for iOS widgets through a common set of Platform aware widgets
MIT License
1.57k stars 171 forks source link

`PlatformElevatedButton` not respecting `cupertino.color` when `originalStyle == false` #461

Open martin-braun opened 3 months ago

martin-braun commented 3 months ago

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

It passes color in. Instead, it should pass data?.color ?? color in, such as in https://github.com/stryder-dev/flutter_platform_widgets/blob/216d5e245854e9c852ca3416b36ca9de0d9e92b4/lib/src/platform_elevated_button.dart#L174