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