history log improvement.

schedule_local_notification
Sikander Saleem 4 weeks ago
parent 0ea7954c6a
commit 0fa9173f01

@ -100,13 +100,28 @@ class HistoryLogView extends StatelessWidget {
width: 153.toScreenWidth,
child: StatusLabel(
radius: 4,
label: status,
label: statusText(status.toLowerCase()),
labelInCenter: true,
textColor: AppColor.getHistoryLogStatusTextColorByName(status),
backgroundColor: AppColor.getHistoryLogStatusColorByName(status),
),
).paddingOnly(bottom: 16, start: 40);
}
String statusText(String status) {
if (status == "new") {
return "Open Request".addTranslation;
} else if (status == "in progress") {
return "Status update to In Progress".addTranslation;
} else if (status == "closed") {
return "Status update to Closed".addTranslation;
} else if (status == "completed") {
return "Status update to Completed".addTranslation;
} else if (status == "fixed") {
return "Status update to Fixed".addTranslation;
} else
return status;
}
}
class HistoryLogModel {

Loading…
Cancel
Save