Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamic color does not respect system's color contrast setting #627

Open
1 task done
amal-stack opened this issue Nov 10, 2024 · 0 comments
Open
1 task done

Dynamic color does not respect system's color contrast setting #627

amal-stack opened this issue Nov 10, 2024 · 0 comments
Labels
bug Something isn't working triage Issues that haven't been triaged

Comments

@amal-stack
Copy link

amal-stack commented Nov 10, 2024

Package

dynamic_color

Existing issue?

What happened?

Expected vs actual result:

  1. Material 3 has introduced user-controlled color contrast which allows users to select three levels of contrast:
    image
  2. According to the linked specification, the color scheme should "automatically" inherit the system contrast settings. However, the dynamic_color plugin does not respect this setting. The colors provided by the plugin are always the same irrespective of the contrast setting.

Steps to reproduce:

  1. Create a Flutter app and add the dynamic_color package.
  2. Use DynamicColorBuilder to get the light and dark color schemes.
  3. Run the app on Android where the contrast setting is supported. To change the contrast, go to Developer Options > Contrast.
  4. After changing the contrast, open another app where dynamic color is supported like Google Drive to observe the differences.
  5. Reopen the Flutter app. It can be observed that the colors do not change as per the selected contrast option.

The dynamic_color plugin has additional critical issues (such as broken dynamic tone-based and fixed color roles, #574, #582) that have impacted Flutter for an extended period. This plugin provides one of the key features of Material 3 for Flutter. However, it has not been updated for over 7-8 months.

Hoping to see these issues prioritized and addressed soon.

Relevant log output

No response

@amal-stack amal-stack added bug Something isn't working triage Issues that haven't been triaged labels Nov 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage Issues that haven't been triaged
Projects
None yet
Development

No branches or pull requests

1 participant