|
|
|
|
@ -137,24 +137,29 @@ class _ServiceRequestDetailViewState extends State<ServiceRequestDetailView> {
|
|
|
|
|
children: [
|
|
|
|
|
Row(
|
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
Wrap(
|
|
|
|
|
// spacing: 8,
|
|
|
|
|
runSpacing: 8,
|
|
|
|
|
children: [
|
|
|
|
|
if (Provider.of<SettingProvider>(context, listen: false).showPriority) ...[
|
|
|
|
|
StatusLabel(
|
|
|
|
|
label: workOrder.priority?.name,
|
|
|
|
|
id: workOrder.priority!.id!,
|
|
|
|
|
id: workOrder.priority!.value!,
|
|
|
|
|
radius: 4,
|
|
|
|
|
textColor: AppColor.getPriorityStatusTextColor(context, workOrder.priority!.id!),
|
|
|
|
|
backgroundColor: AppColor.getPriorityStatusColor(context, workOrder.priority!.id!),
|
|
|
|
|
textColor: AppColor.getPriorityStatusTextColor(context, workOrder.priority!.value!),
|
|
|
|
|
backgroundColor: AppColor.getPriorityStatusColor(context, workOrder.priority!.value!),
|
|
|
|
|
),
|
|
|
|
|
8.width,
|
|
|
|
|
],
|
|
|
|
|
if (workOrder.itgFormWorkOrderStatus != null) ...[
|
|
|
|
|
StatusLabel(
|
|
|
|
|
label: workOrder.itgFormWorkOrderStatus,
|
|
|
|
|
id: 0,
|
|
|
|
|
// id: 0,
|
|
|
|
|
radius: 4,
|
|
|
|
|
textColor: AppColor.getPriorityStatusTextColor(context, 82),
|
|
|
|
|
backgroundColor: AppColor.getPriorityStatusColor(context, 0),
|
|
|
|
|
backgroundColor: AppColor.getPriorityStatusColor(context, 1000),
|
|
|
|
|
),
|
|
|
|
|
8.width,
|
|
|
|
|
],
|
|
|
|
|
@ -173,7 +178,8 @@ class _ServiceRequestDetailViewState extends State<ServiceRequestDetailView> {
|
|
|
|
|
backgroundColor: AppColor.orange30,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
1.width.expanded,
|
|
|
|
|
],
|
|
|
|
|
).expanded,
|
|
|
|
|
Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.end,
|
|
|
|
|
children: [
|
|
|
|
|
@ -181,7 +187,7 @@ class _ServiceRequestDetailViewState extends State<ServiceRequestDetailView> {
|
|
|
|
|
// context.translation.code.toSvgAsset(width: 48).onPress(() {
|
|
|
|
|
// // Navigator.push(context, MaterialPageRoute(builder: (context) => UpdateServiceRequestPage(serviceRequest: serviceRequest)));
|
|
|
|
|
// }),
|
|
|
|
|
if (userProvider.user!.type == UsersTypes.engineer) 16.height,
|
|
|
|
|
// if (userProvider.user!.type == UsersTypes.engineer) 16.height,
|
|
|
|
|
Text(
|
|
|
|
|
workOrder.requestedDate!.toString().toServiceRequestCardFormat,
|
|
|
|
|
textAlign: TextAlign.end,
|
|
|
|
|
@ -191,6 +197,7 @@ class _ServiceRequestDetailViewState extends State<ServiceRequestDetailView> {
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
8.height,
|
|
|
|
|
Text(
|
|
|
|
|
context.translation.assetInformation,
|
|
|
|
|
style: AppTextStyles.heading4.copyWith(color: context.isDark ? AppColor.neutral30 : AppColor.neutral50),
|
|
|
|
|
@ -507,9 +514,7 @@ class _ServiceRequestDetailViewState extends State<ServiceRequestDetailView> {
|
|
|
|
|
style: AppTextStyles.heading4.copyWith(color: context.isDark ? AppColor.neutral30 : AppColor.neutral50),
|
|
|
|
|
).expanded,
|
|
|
|
|
if (!provider.isReadOnlyRequest)
|
|
|
|
|
"edit_icon".toSvgAsset(height: 21, width: 21,
|
|
|
|
|
color: context.isDark?AppColor.primary10:null
|
|
|
|
|
).onPress(() async {
|
|
|
|
|
"edit_icon".toSvgAsset(height: 21, width: 21, color: context.isDark ? AppColor.primary10 : null).onPress(() async {
|
|
|
|
|
provider.refreshTimer = false;
|
|
|
|
|
await Navigator.push(context, MaterialPageRoute(builder: (context) => CostDetailFormScreen(isEdit: true)));
|
|
|
|
|
provider.refreshTimer = true;
|
|
|
|
|
|