hidding collapse and showing start rate of staff

This commit is contained in:
José Salazar
2026-01-30 00:00:44 -05:00
parent bc44153458
commit 1e505c806a
7 changed files with 19704 additions and 19694 deletions

View File

@@ -121,6 +121,7 @@ class ViewOrdersRepositoryImpl implements IViewOrdersRepository {
'status': 'confirmed',
'photo_url': application.staff.photoUrl,
'phone': application.staff.phone,
'rating': application.staff.averageRating,
});
}
return grouped;

View File

@@ -235,14 +235,16 @@ class _ViewOrderCardState extends State<ViewOrderCard> {
onTap: () => _openEditSheet(order: order),
),
const SizedBox(width: UiConstants.space2),
_buildHeaderIconButton(
icon: _expanded
? UiIcons.chevronUp
: UiIcons.chevronDown,
color: UiColors.iconSecondary,
bgColor: UiColors.bgSecondary,
onTap: () => setState(() => _expanded = !_expanded),
),
if (order.confirmedApps.isNotEmpty)
_buildHeaderIconButton(
icon: _expanded
? UiIcons.chevronUp
: UiIcons.chevronDown,
color: UiColors.iconSecondary,
bgColor: UiColors.bgSecondary,
onTap: () =>
setState(() => _expanded = !_expanded),
),
],
),
],