|
|
|
@ -31,14 +31,14 @@ class TaskRequestItemView extends StatelessWidget {
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
StatusLabel(
|
|
|
|
StatusLabel(
|
|
|
|
label: requestDetails!.priority!,
|
|
|
|
label: requestDetails!.priority!,
|
|
|
|
textColor: AppColor.getRequestStatusTextColorByName(context, requestDetails!.priority!),
|
|
|
|
textColor: AppColor.getRequestStatusTextColorByName(context, requestDetails?.priority!),
|
|
|
|
backgroundColor: AppColor.getRequestStatusColorByName(context, requestDetails!.priority!),
|
|
|
|
backgroundColor: AppColor.getRequestStatusColorByName(context, requestDetails?.priority!),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
8.width,
|
|
|
|
8.width,
|
|
|
|
StatusLabel(
|
|
|
|
StatusLabel(
|
|
|
|
label: requestDetails!.status!,
|
|
|
|
label: requestDetails!.status!,
|
|
|
|
textColor: AppColor.getRequestStatusTextColorByName(context, requestDetails!.status!),
|
|
|
|
textColor: AppColor.getRequestStatusTextColorByName(context, requestDetails?.status!),
|
|
|
|
backgroundColor: AppColor.getRequestStatusColorByName(context, requestDetails!.status!),
|
|
|
|
backgroundColor: AppColor.getRequestStatusColorByName(context, requestDetails?.status!),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
1.width.expanded,
|
|
|
|
1.width.expanded,
|
|
|
|
Text(
|
|
|
|
Text(
|
|
|
|
@ -51,10 +51,10 @@ class TaskRequestItemView extends StatelessWidget {
|
|
|
|
8.height,
|
|
|
|
8.height,
|
|
|
|
(requestDetails?.nameOfType ?? context.translation.taskRequest).heading5(context),
|
|
|
|
(requestDetails?.nameOfType ?? context.translation.taskRequest).heading5(context),
|
|
|
|
8.height,
|
|
|
|
8.height,
|
|
|
|
// '${context.translation.taskNo}: ${requestDetails!.id}'.bodyText(context),
|
|
|
|
'${context.translation.requestNo}: ${requestDetails!.requestNo}'.bodyText(context),
|
|
|
|
'${context.translation.taskType}: ${'Task Type.'}'.bodyText(context),
|
|
|
|
'${context.translation.assetName}: ${requestDetails!.assetName}'.bodyText(context),
|
|
|
|
// '${context.translation.code}: ${request.code}'.bodyText(context),
|
|
|
|
'${context.translation.assetNo}: ${requestDetails!.assetNo}'.bodyText(context),
|
|
|
|
'${context.translation.taskNo}: ${'Task number'}'.bodyText(context),
|
|
|
|
'${context.translation.assetSN}: ${requestDetails!.assetSN}'.bodyText(context),
|
|
|
|
16.height,
|
|
|
|
16.height,
|
|
|
|
Row(
|
|
|
|
Row(
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
|