Skip to content

Commit

Permalink
Update textstyles on home.dart (#189)
Browse files Browse the repository at this point in the history
Replaces deprecated textThemes by the new ones
  • Loading branch information
adoankim committed Jun 23, 2020
1 parent 81b5f2a commit e61e5f2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions mdc_100_series/lib/home.dart
Expand Up @@ -57,17 +57,15 @@ class HomePage extends StatelessWidget {
// TODO: Change innermost Column (103)
children: <Widget>[
// 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,
),
],
),
Expand Down

0 comments on commit e61e5f2

Please sign in to comment.