diff --git a/assets/icons/star_filled_icon.svg b/assets/icons/star_filled_icon.svg new file mode 100644 index 0000000..488fc67 --- /dev/null +++ b/assets/icons/star_filled_icon.svg @@ -0,0 +1,3 @@ + + + diff --git a/lib/features/home/presentation/widgets/top_professionals_section.dart b/lib/features/home/presentation/widgets/top_professionals_section.dart index 2daf8fb..4e21269 100644 --- a/lib/features/home/presentation/widgets/top_professionals_section.dart +++ b/lib/features/home/presentation/widgets/top_professionals_section.dart @@ -484,15 +484,13 @@ class _TopProfessionalsSectionState // Star Rating Row( - children: List.generate(5, (i) { + children: List.generate(rating.round().clamp(0, 5), (i) { return Padding( padding: const EdgeInsets.only(right: 4), - child: Icon( - i < rating.round() - ? Icons.star_rounded - : Icons.star_outline_rounded, - color: const Color(0xFFE5A625), - size: 24, + child: SvgPicture.asset( + 'assets/icons/star_filled_icon.svg', + width: 18, + height: 17, ), ); }),