material-foundation / material-theme-builder

Visualize dynamic color and create a custom Material Theme.
https://material-foundation.github.io/material-theme-builder/
Apache License 2.0
416 stars 30 forks source link

Flutter - surfaceTint missing from `toColorScheme` #331

Open kvanry opened 4 months ago

kvanry commented 4 months ago

Describe the bug A clear and concise description of what the bug is.

extension MaterialSchemeUtils on MaterialScheme {
  ColorScheme toColorScheme() {
    return ColorScheme(
      ...
      // Missing surfaceTint: surfaceTint,
      ...
    )
  }
}

To Reproduce Steps to reproduce the behavior:

  1. Go to Export->Flutter (Dart)
  2. Go to put generated code in app
  3. Missing the above.

Expected behavior A clear and concise description of what you expected to happen.

surfaceTint to be applied to the ColorScheme

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.