Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions mdc_100_series/lib/supplemental/product_card.dart
Original file line number Diff line number Diff line change
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