Commit 5eada49b authored by Hans Muller's avatar Hans Muller Committed by GitHub

ThemeData.copyWith() should not have a primarySwatch parameter (#7127)

parent c9e7782a
......@@ -363,7 +363,6 @@ class ThemeData {
/// Creates a copy of this theme but with the given fields replaced with the new values.
ThemeData copyWith({
Brightness brightness,
Map<int, Color> primarySwatch,
Color primaryColor,
Brightness primaryColorBrightness,
Color accentColor,
......@@ -393,7 +392,7 @@ class ThemeData {
IconThemeData accentIconTheme,
TargetPlatform platform,
}) {
return new ThemeData(
return new ThemeData.raw(
brightness: brightness ?? this.brightness,
primaryColor: primaryColor ?? this.primaryColor,
primaryColorBrightness: primaryColorBrightness ?? this.primaryColorBrightness,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment