refactor: reduce top professionals section height and limit displayed expertise tags to one
This commit is contained in:
@@ -106,7 +106,7 @@ class _TopProfessionalsSectionState
|
||||
else ...[
|
||||
// Professional Cards - horizontal scroll
|
||||
SizedBox(
|
||||
height: 540,
|
||||
height: 490,
|
||||
child: ListView.builder(
|
||||
// Unique key per tab forces Flutter to rebuild (not reuse)
|
||||
// the list items, preventing stale images from the other tab.
|
||||
@@ -466,8 +466,8 @@ class _TopProfessionalsSectionState
|
||||
spacing: 6,
|
||||
runSpacing: 6,
|
||||
children: [
|
||||
...expertiseTags.take(2).map((tag) => _buildTag(tag)),
|
||||
if (expertiseTags.length > 2)
|
||||
...expertiseTags.take(1).map((tag) => _buildTag(tag)),
|
||||
if (expertiseTags.length > 1)
|
||||
Container(
|
||||
padding: const EdgeInsets.symmetric(
|
||||
horizontal: 10,
|
||||
@@ -484,7 +484,7 @@ class _TopProfessionalsSectionState
|
||||
),
|
||||
),
|
||||
child: Text(
|
||||
'+${expertiseTags.length - 2} more',
|
||||
'+${expertiseTags.length - 1} more',
|
||||
style: const TextStyle(
|
||||
fontFamily: 'SourceSerif4',
|
||||
fontSize: 13,
|
||||
|
||||
Reference in New Issue
Block a user