-
Notifications
You must be signed in to change notification settings - Fork 30.2k
[Regression][iOS] CupertinoActionSheet is broken on master in dark mode. #150769
Description
Steps to reproduce
Just use CupertinoActionSheet in dark mode. The cancelButton color will be white (as with in light mode), we also see a weird change in background color when tapping the button and the function is not executed. See video example below. The issue occurs only on master, stable channel works fine.
CupertinoActionSheet(
actions: [
...
]
cancelButton:
)
Expected results
CupertinoActionSheet should works and looks as intended.
Actual results
CupertinoActionSheet doesn't work and look as intended.
Code sample
Code sample
The wrong code can be found here.
https://github.com/flutter/flutter/blob/master/packages/flutter/lib/src/cupertino/dialog.dart
To workaround issue, we are currently using the code from stable channel.
Screenshots or Video
Screenshots / Video demonstration
Correct version using the code from stable channel.
correct.MP4
Issue when using master channel: Cancel button is white in dark mode. We lost the video recording of this case, but we had an issue also with the tap gestures that was not working as intended (function was not fired, button's color turned to white when tapping it)
Logs
Logs
[Paste your logs here]Flutter Doctor output
Doctor output
[✓] Flutter (Channel master, 3.23.0-13.0.pre.292, on macOS 14.2.1 23C71 darwin-arm64, locale en-IT)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.2)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2023.3)