Commit 900f1584 authored by Hans Muller's avatar Hans Muller Committed by Flutter GitHub Bot

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

parent 11621cc7
...@@ -227,7 +227,7 @@ class TextTheme extends Diagnosticable { ...@@ -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 { ...@@ -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 { ...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment