From e61e5f27ad80ae9330a6d23698d59df370411d1f Mon Sep 17 00:00:00 2001 From: Adoankim Date: Tue, 23 Jun 2020 21:41:00 +0100 Subject: [PATCH] Update textstyles on home.dart (#189) Replaces deprecated textThemes by the new ones --- mdc_100_series/lib/home.dart | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/mdc_100_series/lib/home.dart b/mdc_100_series/lib/home.dart index f83a27fdf6..069cbeb3bb 100644 --- a/mdc_100_series/lib/home.dart +++ b/mdc_100_series/lib/home.dart @@ -57,17 +57,15 @@ class HomePage extends StatelessWidget { // TODO: Change innermost Column (103) children: [ // TODO: Handle overflowing labels (103) - // TODO(larche): Make headline6 when available Text( product.name, - style: theme.textTheme.title, + style: theme.textTheme.headline6, maxLines: 1, ), SizedBox(height: 8.0), - // TODO(larche): Make subtitle2 when available Text( formatter.format(product.price), - style: theme.textTheme.body2, + style: theme.textTheme.subtitle2, ), ], ),