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 { ...@@ -363,7 +363,6 @@ class ThemeData {
/// Creates a copy of this theme but with the given fields replaced with the new values. /// Creates a copy of this theme but with the given fields replaced with the new values.
ThemeData copyWith({ ThemeData copyWith({
Brightness brightness, Brightness brightness,
Map<int, Color> primarySwatch,
Color primaryColor, Color primaryColor,
Brightness primaryColorBrightness, Brightness primaryColorBrightness,
Color accentColor, Color accentColor,
...@@ -393,7 +392,7 @@ class ThemeData { ...@@ -393,7 +392,7 @@ class ThemeData {
IconThemeData accentIconTheme, IconThemeData accentIconTheme,
TargetPlatform platform, TargetPlatform platform,
}) { }) {
return new ThemeData( return new ThemeData.raw(
brightness: brightness ?? this.brightness, brightness: brightness ?? this.brightness,
primaryColor: primaryColor ?? this.primaryColor, primaryColor: primaryColor ?? this.primaryColor,
primaryColorBrightness: primaryColorBrightness ?? this.primaryColorBrightness, 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