From 477683e0bfefbc6ad0cf0f7b3aaf6f9b967489ce Mon Sep 17 00:00:00 2001 From: Kate Lovett Date: Mon, 14 Jun 2021 18:24:02 -0500 Subject: [PATCH] Remove deprecated typography constructor (#83926) --- packages/flutter/lib/src/material/typography.dart | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/packages/flutter/lib/src/material/typography.dart b/packages/flutter/lib/src/material/typography.dart index 113113982b..f3dd903dab 100644 --- a/packages/flutter/lib/src/material/typography.dart +++ b/packages/flutter/lib/src/material/typography.dart @@ -81,16 +81,7 @@ enum ScriptCategory { class Typography with Diagnosticable { /// Creates a typography instance. /// - /// This constructor is identical to [Typography.material2014]. It is - /// deprecated because the 2014 material design defaults used by that - /// constructor are obsolete. The current material design specification - /// recommendations are those reflected by [Typography.material2018]. - @Deprecated( - 'The default Typography constructor defaults to the 2014 material design defaults. ' - 'Applications are urged to migrate to Typography.material2018(), or, if the 2014 defaults ' - 'are desired, to explicitly request them using Typography.material2014(). ' - 'This feature was deprecated after v1.13.8.', - ) + /// This constructor is identical to [Typography.material2018]. factory Typography({ TargetPlatform? platform, TextTheme? black, @@ -98,7 +89,7 @@ class Typography with Diagnosticable { TextTheme? englishLike, TextTheme? dense, TextTheme? tall, - }) = Typography.material2014; + }) = Typography.material2018; /// Creates a typography instance using material design's 2014 defaults. ///