From 0054f40f23f6362a9e352fad116bc333654c6782 Mon Sep 17 00:00:00 2001 From: alphabet007 Date: Mon, 21 Sep 2020 21:35:31 +0800 Subject: [PATCH] Update main.dart 'title' is deprecated and shouldn't be used. This is the term used in the 2014 version of material design. The modern term is headline6. This feature was deprecated after v1.13.8.. --- .../Flutter\344\270\273\351\242\230/main.dart" | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git "a/\347\254\2542\347\253\240Flutter\345\237\272\347\241\200\347\237\245\350\257\206/Flutter\344\270\273\351\242\230/main.dart" "b/\347\254\2542\347\253\240Flutter\345\237\272\347\241\200\347\237\245\350\257\206/Flutter\344\270\273\351\242\230/main.dart" index e576605..f1b8121 100644 --- "a/\347\254\2542\347\253\240Flutter\345\237\272\347\241\200\347\237\245\350\257\206/Flutter\344\270\273\351\242\230/main.dart" +++ "b/\347\254\2542\347\253\240Flutter\345\237\272\347\241\200\347\237\245\350\257\206/Flutter\344\270\273\351\242\230/main.dart" @@ -47,7 +47,7 @@ class MyHomePage extends StatelessWidget { child: Text( '带有背景颜色的文本组件', //获取主题的文本样式 - style: Theme.of(context).textTheme.title, + style: Theme.of(context).textTheme.bodyText1, ), ), ),