refactor: remove star rating and update expertise tag display and padding in top professionals section
This commit is contained in:
@@ -298,7 +298,6 @@ class _TopProfessionalsSectionState
|
||||
final experience = item.experience;
|
||||
final locationText = item.location;
|
||||
final subtitle = item.subtitle.isNotEmpty ? '(${item.subtitle})' : '';
|
||||
final rating = item.rating > 0 ? item.rating : 5.0;
|
||||
|
||||
return Container(
|
||||
decoration: BoxDecoration(
|
||||
@@ -348,7 +347,7 @@ class _TopProfessionalsSectionState
|
||||
child: SingleChildScrollView(
|
||||
physics: const NeverScrollableScrollPhysics(),
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.fromLTRB(16, 12, 16, 14),
|
||||
padding: const EdgeInsets.fromLTRB(16, 20, 16, 14),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
@@ -467,8 +466,8 @@ class _TopProfessionalsSectionState
|
||||
spacing: 6,
|
||||
runSpacing: 6,
|
||||
children: [
|
||||
...expertiseTags.take(3).map((tag) => _buildTag(tag)),
|
||||
if (expertiseTags.length > 3)
|
||||
...expertiseTags.take(2).map((tag) => _buildTag(tag)),
|
||||
if (expertiseTags.length > 2)
|
||||
Container(
|
||||
padding: const EdgeInsets.symmetric(
|
||||
horizontal: 10,
|
||||
@@ -485,7 +484,7 @@ class _TopProfessionalsSectionState
|
||||
),
|
||||
),
|
||||
child: Text(
|
||||
'+${expertiseTags.length - 3} more',
|
||||
'+${expertiseTags.length - 2} more',
|
||||
style: const TextStyle(
|
||||
fontFamily: 'SourceSerif4',
|
||||
fontSize: 13,
|
||||
@@ -530,19 +529,6 @@ class _TopProfessionalsSectionState
|
||||
const SizedBox(height: 8),
|
||||
],
|
||||
|
||||
// Star Rating
|
||||
Row(
|
||||
children: List.generate(rating.round().clamp(0, 5), (i) {
|
||||
return Padding(
|
||||
padding: const EdgeInsets.only(right: 4),
|
||||
child: SvgPicture.asset(
|
||||
'assets/icons/star_filled_icon.svg',
|
||||
width: 18,
|
||||
height: 17,
|
||||
),
|
||||
);
|
||||
}),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user