Open vicenteparmi opened 6 months ago
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.
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 thetoColorScheme
function and it is fixed now.To Reproduce Steps to reproduce the behavior:
Expected behavior The theme should provide the colors and the default backgrounds would appear.
Screenshots
Desktop (please complete the following information):
Smartphone: