1import 'package:easy_localization/easy_localization.dart';
2import 'package:fluentui_system_icons/fluentui_system_icons.dart';
3import 'package:flutter/material.dart';
4import 'package:flutter_screenutil/flutter_screenutil.dart';
5import '../../../../../core/UI/widgets/show_documents_option.dart' show DocumentOption, showDocumentOptions;
6import '../../../../../core/services/documents_service.dart';
7import '../../../../../core/ui/theme/color_palette.dart';
8import '../../../../../core/ui/widgets/collection_item/collection_info_row.dart';
25 this.onCheckboxChanged,
27 required this.reference,
28 required this.deliveryDate,
29 required this.quantityUnloaded,
30 required this.quantityWeighted,
31 required this.warehouseRepresentative,
35 Widget
build(BuildContext context) {
36 return GestureDetector(
50 icon: Icons.receipt_long_outlined,
51 title:
'unloading.documents.weightbridge_note'.tr(),
54 DocumentsService.instance.getDeliveryVoucherDocument(
'$id', context);
61 margin: EdgeInsets.fromLTRB(16.sp, 8.sp, 16.sp, 8.sp),
62 decoration: BoxDecoration(
64 borderRadius: BorderRadius.circular(20),
69 offset:
const Offset(0, 5),
81 crossAxisAlignment: CrossAxisAlignment.start,
84 "${"unloading.collection_info.dv_reference
".tr()} : $reference",
86 Theme.of(context).textTheme.titleMedium!.copyWith(
89 fontWeight: FontWeight.w600,
94 "${'unloading.collection_info.delivered_on'.tr()} ${deliveryDate.split(' ')[0]}",
96 Theme.of(context).textTheme.titleSmall!.copyWith(
107 decoration: BoxDecoration(
109 borderRadius: BorderRadius.circular(25),
114 offset:
const Offset(0, 5),
120 style: Theme.of(context).textTheme.titleSmall!.copyWith(
123 fontWeight: FontWeight.w500,
130 Divider(height: 1.sp),
132 padding: EdgeInsets.all(16.sp),
136 label:
'unloading.collection_info.quantity_unloaded'.tr(),
137 value:
'$quantityUnloaded KG',
138 icon: FluentIcons.drop_12_regular,
142 label:
'unloading.collection_info.quantity_weighted'.tr(),
143 value:
'$quantityWeighted KG',
144 icon: FluentIcons.scales_20_regular,
148 label:
'unloading.collection_info.warehouse_rep'.tr(),
150 icon: FluentIcons.home_split_20_filled,
class DocumentOption showDocumentOptions(BuildContext context, List< DocumentOption > options,)
DocumentOption({ required this.icon, required this.title, required this.color, required this.onTap, })
style Text( '${ 'scheduling.reference'.tr()}:${collection.internalCode}', style:Theme.of(context).textTheme.bodySmall,)
style SizedBox(height:2.h)
style Column(crossAxisAlignment:CrossAxisAlignment.end, children:[Container(padding:EdgeInsets.symmetric(horizontal:8.w, vertical:4.h), decoration:BoxDecoration(color:ColorPalette.tiffanyBlue.withValues(alpha:0.1), borderRadius:BorderRadius.circular(12),), child:Text(collection.type ?? '', style:Theme.of(context).textTheme.bodySmall?.copyWith(color:ColorPalette.tiffanyBlue, fontWeight:FontWeight.bold,),),),],)