1import 'package:easy_localization/easy_localization.dart';
2import 'package:flutter/material.dart';
3import 'package:flutter_screenutil/flutter_screenutil.dart';
4import 'package:go_router/go_router.dart';
5import 'package:lottie/lottie.dart';
7import '../../../../../core/constants/assets.dart';
8import '../../../../../core/router/routes.dart';
9import '../../../../../core/services/location_service.dart';
10import '../../../../../core/ui/theme/color_palette.dart';
11import '../../../../../core/ui/widgets/custom_scaffold.dart';
20 Widget
build(BuildContext context) {
21 return CustomScaffold(
26 child: SingleChildScrollView(
33 mainAxisAlignment: MainAxisAlignment.center,
36 'success_screen.collection_completed'.tr(),
39 fontWeight: FontWeight.bold,
53 'success_screen.collection_completed_message'.tr(),
58 textAlign: TextAlign.center,
76 width:
double.infinity,
77 child: ElevatedButton(
80 while (GoRouterState.of(context).fullPath !=
Routes.todayScheduleScreen.route) {
81 if (!GoRouter.of(context).canPop())
break;
82 GoRouter.of(context).pop();
85 style: ElevatedButton.styleFrom(
87 padding: EdgeInsets.symmetric(vertical: 16.sp),
88 shape: RoundedRectangleBorder(
89 borderRadius: BorderRadius.circular(12.sp),
93 'success_screen.back_home'.tr(),
96 fontWeight: FontWeight.w600,
static const String successLottie
static const antiFlashWhite
void updateDeliveryContext({int? poId, String? poStatus})
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,),),),],)