surfaceContainerLow must be declared, otherwise Cards and navbars appear with transparent backgrounds
Describe the bug
In Flutter 3.22, parameters like surfaceContainerLow must be declared inside the ColorScheme, otherwise Cards and navbars appear with transparent backgrounds. I declared it myself inside the toColorScheme function and it is fixed now.
To Reproduce Steps to reproduce the behavior:
- Update to Flutter 3.22
- Use the generated Dart file from the theme builder
- Use a card widget or navbar
- The backgrounds will be transparent
Expected behavior The theme should provide the colors and the default backgrounds would appear.
Screenshots
Desktop (please complete the following information):
- OS: Windows
- Browser Chrome
- Version 124.0.6367.208
Smartphone:
- Device: GalaxyA71
- OS: Android 13
The Material 3 theme builder seems unfinished. I generated a theme for Flutter and despite having defined surfaceContainer elevation tints in MaterialTheme and ColorScheme, they are lost during the conversion to ColorScheme. We have a lot of missing colors. basically all surfaceContainer levels plus fixed colors for primary, secondary and tertiary colors.