hiding staff data
This commit is contained in:
@@ -120,6 +120,7 @@ class ViewOrdersRepositoryImpl implements IViewOrdersRepository {
|
||||
'worker_name': application.staff.fullName,
|
||||
'status': 'confirmed',
|
||||
'photo_url': application.staff.photoUrl,
|
||||
'phone': application.staff.phone,
|
||||
});
|
||||
}
|
||||
return grouped;
|
||||
|
||||
@@ -514,9 +514,19 @@ class _ViewOrderCardState extends State<ViewOrderCard> {
|
||||
const SizedBox(height: 2),
|
||||
Row(
|
||||
children: <Widget>[
|
||||
const Icon(UiIcons.star, size: 10, color: UiColors.accent),
|
||||
const SizedBox(width: 2),
|
||||
Text('4.8', style: UiTypography.footnote2r.textSecondary),
|
||||
if ((app['rating'] as num?) != null &&
|
||||
(app['rating'] as num) > 0) ...<Widget>[
|
||||
const Icon(
|
||||
UiIcons.star,
|
||||
size: 10,
|
||||
color: UiColors.accent,
|
||||
),
|
||||
const SizedBox(width: 2),
|
||||
Text(
|
||||
(app['rating'] as num).toStringAsFixed(1),
|
||||
style: UiTypography.footnote2r.textSecondary,
|
||||
),
|
||||
],
|
||||
if (app['check_in_time'] != null) ...<Widget>[
|
||||
const SizedBox(width: 8),
|
||||
Container(
|
||||
@@ -541,9 +551,9 @@ class _ViewOrderCardState extends State<ViewOrderCard> {
|
||||
],
|
||||
),
|
||||
),
|
||||
_buildActionIconButton(icon: UiIcons.phone, onTap: () {}),
|
||||
const SizedBox(width: 8),
|
||||
_buildActionIconButton(icon: UiIcons.messageCircle, onTap: () {}),
|
||||
if ((app['phone'] as String?)?.isNotEmpty ?? false) ...<Widget>[
|
||||
_buildActionIconButton(icon: UiIcons.phone, onTap: () {}),
|
||||
],
|
||||
],
|
||||
),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user