material-theme-builder icon indicating copy to clipboard operation
material-theme-builder copied to clipboard

Flutter - surfaceTint missing from `toColorScheme`

Open kvanry opened this issue 1 year ago • 0 comments

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

  • OS: Mac
  • Browser Chrome
  • Version 2.0.1

Smartphone (please complete the following information):

  • Device: N/A
  • OS: N/A
  • Browser N/A
  • Version N/A

Additional context Add any other context about the problem here.

kvanry avatar Jul 18 '24 03:07 kvanry