|
|
|
|
@ -1068,6 +1068,7 @@ class ServiceRequestBottomSheet {
|
|
|
|
|
static Future nurseVerifyArrivalBottomSheet({required BuildContext context}) {
|
|
|
|
|
return buildBottomSheetParent(
|
|
|
|
|
context: context,
|
|
|
|
|
|
|
|
|
|
childWidget: Consumer<ServiceRequestDetailProvider>(builder: (context, ServiceRequestDetailProvider requestDetailProvider, child) {
|
|
|
|
|
return Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
|
@ -1128,26 +1129,49 @@ class ServiceRequestBottomSheet {
|
|
|
|
|
static Future waitingForApprovalBottomSheet({required BuildContext context}) {
|
|
|
|
|
return buildBottomSheetParent(
|
|
|
|
|
context: context,
|
|
|
|
|
isDismissible: false,
|
|
|
|
|
childWidget: Consumer<ServiceRequestDetailProvider>(builder: (context, ServiceRequestDetailProvider requestDetailProvider, child) {
|
|
|
|
|
return Column(
|
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
"Waiting...".heading4(context),
|
|
|
|
|
12.height,
|
|
|
|
|
Text(
|
|
|
|
|
"Request Sent, Waiting for requester to confirm arrival",
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontSize: 16.toScreenWidth,
|
|
|
|
|
fontWeight: FontWeight.w500,
|
|
|
|
|
fontStyle: FontStyle.normal,
|
|
|
|
|
decoration: TextDecoration.none,
|
|
|
|
|
return WillPopScope(
|
|
|
|
|
onWillPop: () async {
|
|
|
|
|
// Return `false` to block back navigation
|
|
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
},
|
|
|
|
|
child: Column(
|
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
Row(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
|
children: [
|
|
|
|
|
"Waiting...".heading4(context),
|
|
|
|
|
Container(
|
|
|
|
|
padding: EdgeInsets.all(5.toScreenHeight),
|
|
|
|
|
decoration: const BoxDecoration(
|
|
|
|
|
shape: BoxShape.circle,
|
|
|
|
|
color: AppColor.neutral80
|
|
|
|
|
),
|
|
|
|
|
child: const Icon(Icons.close),
|
|
|
|
|
).onPress((){
|
|
|
|
|
Navigator.pop(context);
|
|
|
|
|
}),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
12.height,
|
|
|
|
|
"waiting".toLottieAsset(height: 100).center,
|
|
|
|
|
12.height,
|
|
|
|
|
],
|
|
|
|
|
12.height,
|
|
|
|
|
Text(
|
|
|
|
|
"Request Sent, Waiting for requester to confirm arrival",
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontSize: 16.toScreenWidth,
|
|
|
|
|
fontWeight: FontWeight.w500,
|
|
|
|
|
fontStyle: FontStyle.normal,
|
|
|
|
|
decoration: TextDecoration.none,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
12.height,
|
|
|
|
|
"waiting".toLottieAsset(height: 100).center,
|
|
|
|
|
12.height,
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
}));
|
|
|
|
|
}
|
|
|
|
|
|