insert pages

This commit is contained in:
Thinzar Win
2020-05-29 16:14:17 +06:30
parent bad27ba5c4
commit f4823d82f8
30 changed files with 1431 additions and 959 deletions

View File

@@ -198,7 +198,7 @@ void showCommentDialog(BuildContext context, commentCallback(comment)) {
}
Widget getStatus(String status) {
return status == "approved"
return status == "Delivered"
? Chip(
backgroundColor: Colors.green,
avatar: Icon(
@@ -222,9 +222,9 @@ Widget getStatus(String status) {
status,
style: TextStyle(color: Colors.white, fontSize: 12),
))
: status == "pending"
: status == "In progress"
? Chip(
backgroundColor: Colors.blue,
backgroundColor: Colors.red,
avatar: Icon(
Icons.timelapse,
color: Colors.white,
@@ -234,12 +234,24 @@ Widget getStatus(String status) {
status,
style: TextStyle(color: Colors.white, fontSize: 12),
))
: Chip(
avatar: Icon(
Icons.check,
size: 14,
),
label: Text(status));
: 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));
}
call(BuildContext context, String phone) {