Skip to content

[Regression][iOS] CupertinoActionSheet is broken on master in dark mode. #150769

@delfme

Description

@delfme

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)
issue

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    r: fixedIssue is closed as already fixed in a newer version

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions