diff --git a/ios/Runner/Info.plist b/ios/Runner/Info.plist
index 85f6848..0590caf 100644
--- a/ios/Runner/Info.plist
+++ b/ios/Runner/Info.plist
@@ -1,65 +1,66 @@
-
- GMSApiKey
- YOUR_API_KEY
- NSLocationWhenInUseUsageDescription
- Your location is required to provide relevant information.
- NSCameraUsageDescription
- Sefer app requires access to your camera in order to scan QR codes and capture images for uploading.
- NSLocationAlwaysAndWhenInUseUsageDescription
- Sefer app needs access to your location to provide you with accurate directions and location-based services.
- FirebaseAppDelegateProxyEnabled
- NO
- CFBundleGetInfoString
-
- LSApplicationCategoryType
-
- CFBundleDevelopmentRegion
- $(DEVELOPMENT_LANGUAGE)
- CFBundleDisplayName
- Sefer
- CFBundleExecutable
- $(EXECUTABLE_NAME)
- CFBundleIdentifier
- $(PRODUCT_BUNDLE_IDENTIFIER)
- CFBundleInfoDictionaryVersion
- 6.0
- CFBundleName
- Sefer
- CFBundlePackageType
- APPL
- CFBundleShortVersionString
- $(FLUTTER_BUILD_NAME)
- CFBundleSignature
- ????
- CFBundleVersion
- $(FLUTTER_BUILD_NUMBER)
- LSRequiresIPhoneOS
-
- UILaunchStoryboardName
- LaunchScreen
- UIMainStoryboardFile
- Main
- UISupportedInterfaceOrientations
-
- UIInterfaceOrientationPortrait
- UIInterfaceOrientationLandscapeLeft
- UIInterfaceOrientationLandscapeRight
-
- UISupportedInterfaceOrientations~ipad
-
- UIInterfaceOrientationPortrait
- UIInterfaceOrientationPortraitUpsideDown
- UIInterfaceOrientationLandscapeLeft
- UIInterfaceOrientationLandscapeRight
-
- UIViewControllerBasedStatusBarAppearance
-
- CADisableMinimumFrameDurationOnPhone
-
- UIApplicationSupportsIndirectInputEvents
-
-
+
+ GMSApiKey
+ YOUR_API_KEY
+
+ NSCameraUsageDescription
+ Sefer app requires access to your camera in order to scan QR codes and capture images for uploading.
+ NSLocationAlwaysAndWhenInUseUsageDescription
+ Sefer app needs access to your location to provide you with accurate directions and location-based services.
+ FirebaseAppDelegateProxyEnabled
+ NSLocationWhenInUseUsageDescription
+ This app needs access to your location to provide you with the best ride experience. Your location data will be used to find the nearest available cars and connect you with the closest captain for efficient and convenient rides.
+ NO
+ CFBundleGetInfoString
+
+ LSApplicationCategoryType
+
+ CFBundleDevelopmentRegion
+ $(DEVELOPMENT_LANGUAGE)
+ CFBundleDisplayName
+ Sefer
+ CFBundleExecutable
+ $(EXECUTABLE_NAME)
+ CFBundleIdentifier
+ $(PRODUCT_BUNDLE_IDENTIFIER)
+ CFBundleInfoDictionaryVersion
+ 6.0
+ CFBundleName
+ Sefer
+ CFBundlePackageType
+ APPL
+ CFBundleShortVersionString
+ $(FLUTTER_BUILD_NAME)
+ CFBundleSignature
+ ????
+ CFBundleVersion
+ $(FLUTTER_BUILD_NUMBER)
+ LSRequiresIPhoneOS
+
+ UILaunchStoryboardName
+ LaunchScreen
+ UIMainStoryboardFile
+ Main
+ UISupportedInterfaceOrientations
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ UISupportedInterfaceOrientations~ipad
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationPortraitUpsideDown
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ UIViewControllerBasedStatusBarAppearance
+
+ CADisableMinimumFrameDurationOnPhone
+
+ UIApplicationSupportsIndirectInputEvents
+
+
diff --git a/lib/constant/links.dart b/lib/constant/links.dart
index 9dc1ca7..4eb587b 100644
--- a/lib/constant/links.dart
+++ b/lib/constant/links.dart
@@ -78,4 +78,5 @@ class AppLink {
static const String signUpCaptin = "$authCaptin/register.php";
static const String sendVerifyEmailCaptin = "$authCaptin/sendVerifyEmail.php";
static const String verifyEmailCaptin = "$authCaptin/verifyEmail.php";
+ static const String removeUser = "$authCaptin/removeAccount.php";
}
diff --git a/lib/controller/functions/log_out.dart b/lib/controller/functions/log_out.dart
index 79a84a4..692ec66 100644
--- a/lib/controller/functions/log_out.dart
+++ b/lib/controller/functions/log_out.dart
@@ -3,6 +3,8 @@ import 'package:flutter/src/widgets/basic.dart';
import 'package:get/get.dart';
import 'package:ride/constant/box_name.dart';
import 'package:ride/constant/colors.dart';
+import 'package:ride/constant/links.dart';
+import 'package:ride/controller/functions/crud.dart';
import 'package:ride/main.dart';
import 'package:ride/views/lang/languages.dart';
import 'package:ride/views/widgets/elevated_btn.dart';
@@ -10,6 +12,12 @@ import 'package:ride/views/widgets/elevated_btn.dart';
import '../../constant/style.dart';
class LogOut {
+ Future deleteMyAccount(String id) async {
+ await CRUD().post(link: AppLink.removeUser, payload: {'id': id}).then(
+ (value) => Get.snackbar('Deleted', 'Your Account is Deleted',
+ backgroundColor: AppColor.redColor));
+ }
+
Future logOut() async {
Get.defaultDialog(
title: 'Are you Sure to LogOut?'.tr,
diff --git a/lib/views/Rate/rate_captain.dart b/lib/views/Rate/rate_captain.dart
new file mode 100644
index 0000000..e69de29
diff --git a/lib/views/Rate/rate_passenger.dart b/lib/views/Rate/rate_passenger.dart
new file mode 100644
index 0000000..e69de29
diff --git a/lib/views/home/profile/passenger_profile_page.dart b/lib/views/home/profile/passenger_profile_page.dart
index 4833182..82d73b2 100644
--- a/lib/views/home/profile/passenger_profile_page.dart
+++ b/lib/views/home/profile/passenger_profile_page.dart
@@ -1,8 +1,10 @@
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';
+import 'package:ride/constant/box_name.dart';
import 'package:ride/constant/style.dart';
import 'package:ride/controller/profile/profile_controller.dart';
+import 'package:ride/main.dart';
import 'package:ride/views/widgets/elevated_btn.dart';
import 'package:ride/views/widgets/my_scafold.dart';
import 'package:ride/views/widgets/mycircular.dart';
@@ -17,6 +19,11 @@ class PassengerProfilePage extends StatelessWidget {
Get.put(ProfileController());
return MyScafolld(
isleading: true,
+ action: MyElevatedButton(
+ title: 'Delete My Account'.tr,
+ onPressed: () {
+ LogOut().deleteMyAccount(box.read(BoxName.pasengerID).toString());
+ }),
title: 'My Profile'.tr,
body: [
GetBuilder(