From d644f1de11cd4b41e7c2b99b9d8d10d7f7686552 Mon Sep 17 00:00:00 2001 From: Anatolii Date: Wed, 11 Nov 2020 18:42:48 +0200 Subject: [PATCH] 'display1' is deprecated and shouldn't be used 'display1' is deprecated and shouldn't be used. This is the term used in the 2014 version of material design. The modern term is headline4. This feature was deprecated after v1.13.8.. --- custom_paint_example/lib/home.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_paint_example/lib/home.dart b/custom_paint_example/lib/home.dart index a1cfe3e..67a805a 100644 --- a/custom_paint_example/lib/home.dart +++ b/custom_paint_example/lib/home.dart @@ -32,7 +32,7 @@ class _MyHomePageState extends State { ), Text( '$_counter', - style: Theme.of(context).textTheme.display1, + style: Theme.of(context).textTheme.headline4, ), ], ),