Merge remote-tracking branch 'upstream/master'

This commit is contained in:
Thinzar Win
2020-05-29 16:22:13 +06:30
27 changed files with 1820 additions and 84 deletions

View File

@@ -234,24 +234,22 @@ Widget getStatus(String status) {
status,
style: TextStyle(color: Colors.white, fontSize: 12),
))
: status == "pending"
? Chip(
backgroundColor: Colors.blue,
avatar: Icon(
Icons.timelapse,
color: Colors.white,
size: 14,
),
label: Text(
status,
style: TextStyle(color: Colors.white, fontSize: 12),
))
: Chip(
avatar: Icon(
Icons.check,
size: 14,
),
label: Text(status));
: status == "pickup"
? Text(
status,
style: TextStyle(color: Colors.red, fontSize: 12),
)
: status == "delivered"
? Text(
status,
style: TextStyle(color: Colors.green, fontSize: 12),
)
: Chip(
avatar: Icon(
Icons.check,
size: 14,
),
label: Text(status));
}
call(BuildContext context, String phone) {