Skip to content

Commit

Permalink
Updated TextStyles in product_card.dart (material-components#186)
Browse files Browse the repository at this point in the history
Updated with new TextStyles.
  • Loading branch information
Rex B Ferrer authored and Renzo-Olivares committed Jun 24, 2020
1 parent e61e5f2 commit f76677f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions mdc_100_series/lib/supplemental/product_card.dart
Expand Up @@ -53,19 +53,17 @@ class ProductCard extends StatelessWidget {
mainAxisAlignment: MainAxisAlignment.end,
crossAxisAlignment: CrossAxisAlignment.center,
children: <Widget>[
// TODO(larche): Make headline6 when available
Text(
product == null ? '' : product.name,
style: theme.textTheme.button,
style: theme.textTheme.headline6,
softWrap: false,
overflow: TextOverflow.ellipsis,
maxLines: 1,
),
SizedBox(height: 4.0),
// TODO(larche): Make subtitle2 when available
Text(
product == null ? '' : formatter.format(product.price),
style: theme.textTheme.caption,
style: theme.textTheme.subtitle2,
),
],
),
Expand Down

0 comments on commit f76677f

Please sign in to comment.