Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
change ThemeData.primaryColor to PrimarySwatch instead of PrimarySwatch #15265
Currently, ThemeData always chooses PrimarySwatch as the primary color for light themes, since this is the case for all included MaterialColors. MaterialColor and ColorSwatch also implement Color, specifically the primary color. This color can be used directly in place of the 500 shade.
Even for the same color value a MaterialColor != Color, so this change might cause breakages in any tests which assert a primary color is equal to a Color.shade500.
Mar 14, 2018
FYI. Such property is not shown in the