Description of change

The ThemeData accentColor, accentColorBrightness, accentIconTheme and
accentTextTheme properties have been deprecated because the Material
library no longer uses them.

Migration guide

Application theme

ThemeData values no longer need to specify accentColor,
accentColorBrightness, accentIconTheme, or accentTextTheme.

To configure the appearance of the material components in about the
same way as before, specify the color scheme’s secondary color
instead of accentColor.

Code before migration:

MaterialApp

theme:

ThemeData

accentColor:

myColor

),

// ...

);

Code after migration:

final

ThemeData

theme

ThemeData

();