Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
g123k committed Jan 10, 2025
1 parent b2fa686 commit 9d28fa8
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ class ProductTitleCard extends StatelessWidget {
const SizedBox(height: SMALL_SPACE),
_ProductTitleCardBrand(
selectable: isSelectable,
dense: dense,
),
const SizedBox(height: 2.0),
trailing,
Expand Down Expand Up @@ -155,9 +156,11 @@ class _ProductTitleCardName extends StatelessWidget {
class _ProductTitleCardBrand extends StatelessWidget {
const _ProductTitleCardBrand({
required this.selectable,
this.dense = false,
});

final bool selectable;
final bool dense;

@override
Widget build(BuildContext context) {
Expand All @@ -168,6 +171,8 @@ class _ProductTitleCardBrand extends StatelessWidget {

return Text(
brands,
maxLines: dense ? 1 : 2,
overflow: dense ? TextOverflow.ellipsis : null,
style: Theme.of(context).textTheme.bodyMedium,
textAlign: TextAlign.start,
);
Expand Down

0 comments on commit 9d28fa8

Please sign in to comment.