feat: add id field to professional models and enable navigation to agent detail pages
This commit is contained in:
@@ -300,7 +300,7 @@ class _TopProfessionalsSectionState
|
||||
final locationText = item.location;
|
||||
final subtitle = item.subtitle.isNotEmpty ? '(${item.subtitle})' : '';
|
||||
|
||||
return Container(
|
||||
final card = Container(
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.white,
|
||||
borderRadius: BorderRadius.circular(15),
|
||||
@@ -538,6 +538,18 @@ class _TopProfessionalsSectionState
|
||||
],
|
||||
),
|
||||
);
|
||||
|
||||
if (item.id != null && item.id!.isNotEmpty) {
|
||||
return Material(
|
||||
color: Colors.transparent,
|
||||
child: InkWell(
|
||||
borderRadius: BorderRadius.circular(15),
|
||||
onTap: () => context.push('/agents/detail/${item.id}'),
|
||||
child: card,
|
||||
),
|
||||
);
|
||||
}
|
||||
return card;
|
||||
}
|
||||
|
||||
Widget _buildShimmerCards() {
|
||||
|
||||
Reference in New Issue
Block a user