Package: flutter Supported by Flutter Fix: yes
Several TextStyle properties of TextTheme were deprecated in v3.1 to support new stylings from the Material Design specification. They are listed in the following table alongside the appropriate replacement in the new API.
Deprecation New API
headline1 displayLarge headline2 displayMedium headline3 displaySmall headline4 headlineMedium headline5 headlineSmall headline6 titleLarge subtitle1 titleMedium subtitle2 titleSmall bodyText1 bodyLarge bodyText2 bodyMedium caption bodySmall button labelLarge overline labelSmall