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';
6import '../../../../../../core/ui/theme/color_palette.dart';
16 required this.address,
17 required this.cRReference,
19 required this.instructions,
24 Widget
build(BuildContext context) {
27 decoration: BoxDecoration(
29 borderRadius: BorderRadius.circular(20),
34 offset:
const Offset(0, 2),
42 FluentIcons.location_24_filled,
43 'collection_card.address'.tr(),
49 FluentIcons.qr_code_24_filled,
50 'collection_card.cr_reference'.tr(),
56 FluentIcons.drop_12_filled,
57 'collection_card.declared_quantity'.tr(),
63 FluentIcons.list_16_filled,
64 'collection_card.instructions'.tr(),
82 decoration: BoxDecoration(
84 borderRadius: BorderRadius.circular(16),
95 crossAxisAlignment: CrossAxisAlignment.start,
99 style: Theme.of(context).textTheme.titleSmall?.copyWith(
106 style: Theme.of(context).textTheme.displaySmall?.copyWith(
108 fontWeight: FontWeight.w400,
119 if (
volume == null)
return "--";
120 double volumeValue =
volume is
double ?
volume :
double.tryParse(
volume.toString()) ?? 0.0;
121 if (volumeValue > 999) {
122 return '${(volumeValue / 1000).toStringAsFixed(2)} MT';
124 return '$volumeValue KG';
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,),),),],)