1import 'package:easy_localization/easy_localization.dart';
2import 'package:flutter/material.dart';
3import 'package:flutter_screenutil/flutter_screenutil.dart';
5import '../../../../../../core/ui/theme/color_palette.dart';
13 required this.declaredVolume,
14 required this.collectedVolume,
18 Widget
build(BuildContext context) {
20 mainAxisAlignment: MainAxisAlignment.spaceBetween,
35 margin: EdgeInsets.symmetric(horizontal: 16.sp),
42 style: Theme.of(context).textTheme.titleSmall,
47 style: Theme.of(context).textTheme.titleSmall?.copyWith(
49 fontWeight: FontWeight.w600,
59 if (
volume == null)
return "--";
60 double volumeValue =
volume is
double ?
volume :
double.tryParse(
volume.toString()) ?? 0.0;
61 if (volumeValue > 999) {
62 return '${(volumeValue / 1000).toStringAsFixed(2)} MT';
64 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,),),),],)