Skip to content

Commit

Permalink
Updated TextStyles in product_card.dart (#186) (#193)
Browse files Browse the repository at this point in the history
Updated with new TextStyles.

Co-authored-by: Rex B Ferrer <ferrergordonrb@g.cofc.edu>
  • Loading branch information
Renzo-Olivares and Rex B Ferrer committed Jun 24, 2020
1 parent 84028b5 commit eeb3406
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 eeb3406

Please sign in to comment.