Results for “ColorScheme.copyWith”
Full-text search across Boring Doc explanations, official documentation pages, the Flutter API index and every indexed version change.
Version changes
- Material 3 Tokens Update in Flutter3.27.0breaking
properties: The differences in the mappings of the color roles are small. Use `ColorScheme.copyWith` to revert to the original default colors: Code before migration: ```dart final ColorScheme
- Introduce new ColorScheme roles3.22.0breaking
surfaceContainerHighest`. Code before migration: ```dart final ColorScheme colorScheme = ColorScheme(); MaterialApp( theme: ThemeData( //... colorScheme: colorScheme.copyWith( background: myColor1, onBackground: myColor2