56 Widget
build(BuildContext context) {
60 .
translate(
'Your collection will be scheduled'),
62 .
translate(
'Your collection will be scheduled')
71 decoration: BoxDecoration(
72 borderRadius: BorderRadius.circular(10),
73 color: Theme.of(context).colorScheme.primary,
82 CollectionStatusEnumFromJson(
83 widget.collection.status ??
96 decoration: BoxDecoration(
97 borderRadius: BorderRadius.circular(10),
98 gradient: LinearGradient(
100 Theme.of(context).colorScheme.primary.withOpacity(0.11),
101 Theme.of(context).colorScheme.primary.withOpacity(0.8),
109 top: 12.sp, bottom: 12.sp, left: 12.sp, right: 80.sp),
111 widget.collection.status ??
119 SizedBox(height: 10.sp),
121 padding: EdgeInsets.all(15.sp),
124 CollectionStatusEnumFromJson(
125 widget.collection.status ??
131 SizedBox(height: 10.sp),
133 padding: EdgeInsets.all(13.sp),
135 crossAxisAlignment: CrossAxisAlignment.start,
139 icon: HugeIcons.strokeRoundedBinaryCode,
141 info: widget.collection.name,
143 SizedBox(height: 25.sp),
149 icon: HugeIcons.strokeRoundedCalendar01,
152 info: widget.collection.dateOrder != null
153 ? DateFormat(
'yyyy-MM-dd')
154 .format(widget.collection.dateOrder!)
162 icon: HugeIcons.strokeRoundedClock01,
165 info: widget.collection.proposedTime?.name,
170 SizedBox(height: 25.sp),
173 icon: HugeIcons.strokeRoundedWeightScale01,
176 widget.collection.orderLines?.first.productQty,
181 SizedBox(height: 25.sp),
184 icon: HugeIcons.strokeRoundedEqualSignCircle,
186 info: widget.collection.instruction,
188 SizedBox(height: 22.sp),
190 visible: widget.collection.status ==
195 child: CustomSliderV2(
200 Routes.editCollection.route,
201 extra: widget.collection,
231 crossAxisAlignment: CrossAxisAlignment.start,
232 mainAxisSize: MainAxisSize.min,
236 CollectionStatusEnumFromJson(
240 style: Theme.of(context).textTheme.bodyLarge?.copyWith(
241 fontWeight: FontWeight.bold,
243 color: Theme.of(context).colorScheme.onPrimary,
251 required BuildContext context,
253 required String
label,
254 required String? info,
258 mainAxisSize: size ?? MainAxisSize.min,
259 crossAxisAlignment: CrossAxisAlignment.start,
264 decoration: BoxDecoration(
266 Theme.of(context).colorScheme.primary.withOpacity(0.11),
267 borderRadius: BorderRadius.circular(10),
272 color: Theme.of(context).colorScheme.primary,
276 SizedBox(width: 15.sp),
279 mainAxisSize: MainAxisSize.min,
280 crossAxisAlignment: CrossAxisAlignment.start,
286 style: Theme.of(context).textTheme.bodySmall,
289 SizedBox(height: 3.sp),
292 style: Theme.of(context).textTheme.bodySmall,
const CustomCard({ super.key, required this.child, this.padding, this.bgColor, })