From d6d3f122e9a09db8a37fefbdb9853be8945544f5 Mon Sep 17 00:00:00 2001 From: dev-aentgs <65178249+dev-aentgs@users.noreply.github.com> Date: Fri, 14 Aug 2020 18:35:11 +0530 Subject: [PATCH] Update main.dart ` Theme.of(context).textTheme.display1,` is deprecated . Updated to `Theme.of(context).textTheme.headline4,` --- lib/main.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/main.dart b/lib/main.dart index 895f1a6..03cfddb 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -48,7 +48,7 @@ class _MyHomePageState extends State { ), Text( '${snapshot.data}', - style: Theme.of(context).textTheme.display1, + style: Theme.of(context).textTheme.headline4, ), ], );