checkpoint
This commit is contained in:
@@ -70,9 +70,9 @@ class _RouteListItemState extends State<RouteListItem>
|
||||
}
|
||||
|
||||
Color _getStatusColor(DeliveryRoute route) {
|
||||
if (route.completed) return SvrntyColors.statusCompleted;
|
||||
if (route.deliveredCount > 0) return SvrntyColors.statusInTransit;
|
||||
return SvrntyColors.statusPending;
|
||||
if (route.completed) return SvrntyColors.statusCompleted; // Green
|
||||
if (route.deliveredCount > 0) return SvrntyColors.warning; // Yellow - started but not complete
|
||||
return SvrntyColors.statusCancelled; // Grey - not started
|
||||
}
|
||||
|
||||
@override
|
||||
|
||||
Reference in New Issue
Block a user