You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Update MaterialColor API docs to migrate to ColorScheme for Material3 apps #127228
I'm new to Flutter and I'm trying to configure a custom color scheme while respecting Material 3 color conventions. According to the Material 3 documentation, a tonal palette consists of thirteen tones, including white and black. A tone value of 100 represents maximum lightness and results in white. Each tone value between 0 and 100 expresses the amount of light present in the color.
I'm attempting to use the MaterialColor class to implement my custom colors, but it seems to be following the Material 2 convention instead.
Hi there! Thanks for filing this. Actually we have a new class specific to Material3 colors called ColorScheme - https://api.flutter.dev/flutter/material/ColorScheme-class.html. I'm adding an example to the MaterialColor API docs to make it clear that for Material 3 design you should use the ColorScheme class.
changed the title [-][Proposal] Make MaterialColor consistent with Material 3[/-][+]Update MaterialColor API docs to migrate to ColorScheme for Material3 apps[/+]on Jun 6, 2023
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
[-]MaterialColor inconsistencies with Material 3?[/-][+][Proposal] Make MaterialColor consistent with Material 3[/+]leighajarett commentedon Jun 6, 2023
Hi there! Thanks for filing this. Actually we have a new class specific to Material3 colors called ColorScheme - https://api.flutter.dev/flutter/material/ColorScheme-class.html. I'm adding an example to the MaterialColor API docs to make it clear that for Material 3 design you should use the ColorScheme class.
[-][Proposal] Make MaterialColor consistent with Material 3[/-][+]Update MaterialColor API docs to migrate to ColorScheme for Material3 apps[/+]Adding migration guide for Material 3 colors (#128429)
github-actions commentedon Jun 23, 2023
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.Adding migration guide for Material 3 colors (#128429)
Adding migration guide for Material 3 colors (#128429)
Adding migration guide for Material 3 colors (#128429)