var

toolbarTextStyle

TextStyle

(...);

var

titleTextStyle

TextStyle

(...);

AppBar

brightness:

Brightness

light

textTheme:

TextTheme

bodyMedium:

toolbarTextStyle

titleLarge:

titleTextStyle

backwardsCompatibility:

true

);

AppBarTheme

color:

Colors

blue

);

Code after migration:

var

toolbarTextStyle

TextStyle

(...);

var

titleTextStyle

TextStyle