///todo deleted
// import 'package:flutter/material.dart';
// import 'package:test_sa/extensions/context_extension.dart';
// import 'package:test_sa/extensions/text_extensions.dart';
// import 'package:test_sa/extensions/widget_extensions.dart';
// import 'package:test_sa/models/lookup.dart';
//
// import '../../../models/service_request/search_work_order.dart';
//
// class WorkOrderDetails extends StatelessWidget {
//   final SearchWorkOrder item;
//   final Lookup assetType;
//
//   const WorkOrderDetails({required this.item, this.assetType, Key? key}) : super(key: key);
//
//   @override
//   Widget build(BuildContext context) {
//     return Column(
//       children: [
//         _buildRow(context.translation.callId, item.callRequest?.id?.toString() ?? "", context),
//         _buildRow(context.translation.assetNumber, item.callRequest?.asset?.assetNumber ?? "", context),
//         _buildRow("WO No", item.workOrderNo, context),
//         _buildRow(context.translation.assetName, item.callRequest?.asset?.assetNumber ?? '', context),
//         _buildRow(context.translation.department, item.callRequest?.asset?.department ?? '', context),
//         _buildRow(context.translation.assetSN, item.callRequest?.asset?.assetSerialNo ?? '', context),
//         _buildRow(context.translation.assetType, assetType?.name ?? (item.assetType?.name ?? ""), context),
//         _buildRow(context.translation.model, item.callRequest?.asset?.modelDefinition?.modelName ?? "", context),
//         _buildRow(context.translation.manufacture, item.callRequest?.asset?.modelDefinition?.manufacturerName ?? "", context),
//         _buildRow(context.translation.site, item.callRequest?.asset?.site?.custName ?? "", context),
//       ],
//     ).toShadowContainer(context);
//   }
//
//   Widget _buildRow(String title, String value, BuildContext context) {
//     return Row(
//       mainAxisAlignment: MainAxisAlignment.start,
//       children: [
//         "$title: $value".bodyText(context),
//       ],
//     );
//   }
// }
