Skip to content

Commit

Permalink
Fix ProductAverageRating with Expanded widget
Browse files Browse the repository at this point in the history
# Conflicts:
#	ecommerce_app/lib/src/features/products/presentation/product_screen/product_average_rating.dart
  • Loading branch information
bizz84 committed Nov 16, 2023
1 parent e793b69 commit bbcc78a
Showing 1 changed file with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,13 @@ class ProductAverageRating extends StatelessWidget {
style: Theme.of(context).textTheme.bodyLarge,
),
gapW8,
Text(
product.numRatings == 1
? '1 rating'
: '${product.numRatings} ratings',
style: Theme.of(context).textTheme.bodyMedium,
Expanded(
child: Text(
product.numRatings == 1
? '1 rating'
: '${product.numRatings} ratings',
style: Theme.of(context).textTheme.bodyMedium,
),
),
],
);
Expand Down

0 comments on commit bbcc78a

Please sign in to comment.