Fix a TextTheme.body1 deprecation warning typo (#49557)

This commit is contained in:
Hans Muller 2020-01-27 17:43:02 -08:00 committed by Flutter GitHub Bot
parent 11621cc798
commit 900f15844b

View File

@ -227,7 +227,7 @@ class TextTheme extends Diagnosticable {
/// Used for emphasizing text that would otherwise be [bodyText2]. /// Used for emphasizing text that would otherwise be [bodyText2].
final TextStyle bodyText1; final TextStyle bodyText1;
/// Used for the default text style for [Material]. /// The default text style for [Material].
final TextStyle bodyText2; final TextStyle bodyText2;
/// Used for auxiliary text associated with images. /// Used for auxiliary text associated with images.
@ -325,7 +325,7 @@ class TextTheme extends Diagnosticable {
/// ///
/// This was the name used in the material design 2014 specification. The new /// This was the name used in the material design 2014 specification. The new
/// specification calls this `body1`, and it is exposed in this API as /// specification calls this `body1`, and it is exposed in this API as
/// [textBody1]. /// [bodyText1].
@Deprecated( @Deprecated(
'This is the term used in the 2014 version of material design. The modern term is bodyText1. ' 'This is the term used in the 2014 version of material design. The modern term is bodyText1. '
'This feature was deprecated after v1.13.8.' 'This feature was deprecated after v1.13.8.'
@ -336,9 +336,9 @@ class TextTheme extends Diagnosticable {
/// ///
/// This was the name used in the material design 2014 specification. The new /// This was the name used in the material design 2014 specification. The new
/// specification calls this `body2`, and it is exposed in this API as /// specification calls this `body2`, and it is exposed in this API as
/// [textBody2]. /// [bodyText2].
@Deprecated( @Deprecated(
'This is the term used in the 2014 version of material design. The modern term is bodyText1. ' 'This is the term used in the 2014 version of material design. The modern term is bodyText2. '
'This feature was deprecated after v1.13.8.' 'This feature was deprecated after v1.13.8.'
) )
TextStyle get body1 => bodyText2; TextStyle get body1 => bodyText2;