|
|
|
|
@ -15,11 +15,11 @@ class StatusLabel extends StatelessWidget {
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
if (id == 82) label = context.translation.highPriority;
|
|
|
|
|
if (id == 81) label = context.translation.lowPriority;
|
|
|
|
|
if (label.toLowerCase() == 'In progress'.toLowerCase()) label = context.translation.inProgress;
|
|
|
|
|
if (label.toLowerCase() == 'Complete'.toLowerCase()) label = context.translation.completed;
|
|
|
|
|
if (label.toLowerCase() == 'Open'.toLowerCase()) label = context.translation.open;
|
|
|
|
|
if (label.toLowerCase() == 'Closed'.toLowerCase()) label = context.translation.closed;
|
|
|
|
|
if (label.toLowerCase() == 'Waiting for quotation'.toLowerCase()) label = context.translation.waitingForQuotation;
|
|
|
|
|
if (label?.toLowerCase() == 'In progress'.toLowerCase()) label = context.translation.inProgress;
|
|
|
|
|
if (label?.toLowerCase() == 'Complete'.toLowerCase()) label = context.translation.completed;
|
|
|
|
|
if (label?.toLowerCase() == 'Open'.toLowerCase()) label = context.translation.open;
|
|
|
|
|
if (label?.toLowerCase() == 'Closed'.toLowerCase()) label = context.translation.closed;
|
|
|
|
|
if (label?.toLowerCase() == 'Waiting for quotation'.toLowerCase()) label = context.translation.waitingForQuotation;
|
|
|
|
|
|
|
|
|
|
return Container(
|
|
|
|
|
padding: const EdgeInsets.symmetric(vertical: 6, horizontal: 10),
|
|
|
|
|
@ -29,7 +29,7 @@ class StatusLabel extends StatelessWidget {
|
|
|
|
|
borderRadius: BorderRadius.circular(50),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
child: Text(label, style: AppTextStyles.overline.copyWith(color: textColor)),
|
|
|
|
|
child: Text(label ?? "", style: AppTextStyles.overline.copyWith(color: textColor)),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|