This commit is contained in:
Hamza-Ayed
2023-11-25 14:05:02 +03:00
parent 1d2ceed031
commit a8d6c509c1
37 changed files with 679 additions and 307 deletions

View File

@@ -1,6 +1,8 @@
import 'package:flutter/cupertino.dart';
import 'package:get/get.dart';
import '../../../../constant/style.dart';
import '../../../../views/widgets/elevated_btn.dart';
import '../home_captain_controller.dart';
import '../order_request_controller.dart';
@@ -19,7 +21,23 @@ class ConnectWidget extends StatelessWidget {
int.parse(orderRequestController.countRefuse) > 3
? CupertinoButton(
child: Text('You are Stopped'.tr),
onPressed: () {},
onPressed: () {
Get.defaultDialog(
// backgroundColor: CupertinoColors.destructiveRed,
barrierDismissible: false,
title: 'You Are Stopped For this Day !'.tr,
content: Text(
'You Refused 3 Rides this Day that is the reason \nSee you Tomorrow!'
.tr,
style: AppStyle.title,
),
confirm: MyElevatedButton(
title: 'Ok , See you Tomorrow'.tr,
onPressed: () {
Get.back();
Get.back();
}));
},
color: CupertinoColors.destructiveRed,
)
: CupertinoButton(