10/10/4
This commit is contained in:
@@ -1,65 +1,66 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
<plist version="1.0">
|
<plist version="1.0">
|
||||||
<dict>
|
<dict>
|
||||||
<key>GMSApiKey</key>
|
<key>GMSApiKey</key>
|
||||||
<string>YOUR_API_KEY</string>
|
<string>YOUR_API_KEY</string>
|
||||||
<key>NSLocationWhenInUseUsageDescription</key>
|
|
||||||
<string>Your location is required to provide relevant information.</string>
|
<key>NSCameraUsageDescription</key>
|
||||||
<key>NSCameraUsageDescription</key>
|
<string>Sefer app requires access to your camera in order to scan QR codes and capture images for uploading.</string>
|
||||||
<string>Sefer app requires access to your camera in order to scan QR codes and capture images for uploading.</string>
|
<key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
|
||||||
<key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
|
<string>Sefer app needs access to your location to provide you with accurate directions and location-based services.</string>
|
||||||
<string>Sefer app needs access to your location to provide you with accurate directions and location-based services.</string>
|
<key>FirebaseAppDelegateProxyEnabled</key>
|
||||||
<key>FirebaseAppDelegateProxyEnabled</key>
|
<key>NSLocationWhenInUseUsageDescription</key>
|
||||||
<string>NO</string>
|
<string>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.</string>
|
||||||
<key>CFBundleGetInfoString</key>
|
<string>NO</string>
|
||||||
<string></string>
|
<key>CFBundleGetInfoString</key>
|
||||||
<key>LSApplicationCategoryType</key>
|
<string></string>
|
||||||
<string></string>
|
<key>LSApplicationCategoryType</key>
|
||||||
<key>CFBundleDevelopmentRegion</key>
|
<string></string>
|
||||||
<string>$(DEVELOPMENT_LANGUAGE)</string>
|
<key>CFBundleDevelopmentRegion</key>
|
||||||
<key>CFBundleDisplayName</key>
|
<string>$(DEVELOPMENT_LANGUAGE)</string>
|
||||||
<string>Sefer</string>
|
<key>CFBundleDisplayName</key>
|
||||||
<key>CFBundleExecutable</key>
|
<string>Sefer</string>
|
||||||
<string>$(EXECUTABLE_NAME)</string>
|
<key>CFBundleExecutable</key>
|
||||||
<key>CFBundleIdentifier</key>
|
<string>$(EXECUTABLE_NAME)</string>
|
||||||
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
|
<key>CFBundleIdentifier</key>
|
||||||
<key>CFBundleInfoDictionaryVersion</key>
|
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
|
||||||
<string>6.0</string>
|
<key>CFBundleInfoDictionaryVersion</key>
|
||||||
<key>CFBundleName</key>
|
<string>6.0</string>
|
||||||
<string>Sefer</string>
|
<key>CFBundleName</key>
|
||||||
<key>CFBundlePackageType</key>
|
<string>Sefer</string>
|
||||||
<string>APPL</string>
|
<key>CFBundlePackageType</key>
|
||||||
<key>CFBundleShortVersionString</key>
|
<string>APPL</string>
|
||||||
<string>$(FLUTTER_BUILD_NAME)</string>
|
<key>CFBundleShortVersionString</key>
|
||||||
<key>CFBundleSignature</key>
|
<string>$(FLUTTER_BUILD_NAME)</string>
|
||||||
<string>????</string>
|
<key>CFBundleSignature</key>
|
||||||
<key>CFBundleVersion</key>
|
<string>????</string>
|
||||||
<string>$(FLUTTER_BUILD_NUMBER)</string>
|
<key>CFBundleVersion</key>
|
||||||
<key>LSRequiresIPhoneOS</key>
|
<string>$(FLUTTER_BUILD_NUMBER)</string>
|
||||||
<true/>
|
<key>LSRequiresIPhoneOS</key>
|
||||||
<key>UILaunchStoryboardName</key>
|
<true/>
|
||||||
<string>LaunchScreen</string>
|
<key>UILaunchStoryboardName</key>
|
||||||
<key>UIMainStoryboardFile</key>
|
<string>LaunchScreen</string>
|
||||||
<string>Main</string>
|
<key>UIMainStoryboardFile</key>
|
||||||
<key>UISupportedInterfaceOrientations</key>
|
<string>Main</string>
|
||||||
<array>
|
<key>UISupportedInterfaceOrientations</key>
|
||||||
<string>UIInterfaceOrientationPortrait</string>
|
<array>
|
||||||
<string>UIInterfaceOrientationLandscapeLeft</string>
|
<string>UIInterfaceOrientationPortrait</string>
|
||||||
<string>UIInterfaceOrientationLandscapeRight</string>
|
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||||
</array>
|
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||||
<key>UISupportedInterfaceOrientations~ipad</key>
|
</array>
|
||||||
<array>
|
<key>UISupportedInterfaceOrientations~ipad</key>
|
||||||
<string>UIInterfaceOrientationPortrait</string>
|
<array>
|
||||||
<string>UIInterfaceOrientationPortraitUpsideDown</string>
|
<string>UIInterfaceOrientationPortrait</string>
|
||||||
<string>UIInterfaceOrientationLandscapeLeft</string>
|
<string>UIInterfaceOrientationPortraitUpsideDown</string>
|
||||||
<string>UIInterfaceOrientationLandscapeRight</string>
|
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||||
</array>
|
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||||
<key>UIViewControllerBasedStatusBarAppearance</key>
|
</array>
|
||||||
<false/>
|
<key>UIViewControllerBasedStatusBarAppearance</key>
|
||||||
<key>CADisableMinimumFrameDurationOnPhone</key>
|
<false/>
|
||||||
<true/>
|
<key>CADisableMinimumFrameDurationOnPhone</key>
|
||||||
<key>UIApplicationSupportsIndirectInputEvents</key>
|
<true/>
|
||||||
<true/>
|
<key>UIApplicationSupportsIndirectInputEvents</key>
|
||||||
</dict>
|
<true/>
|
||||||
|
</dict>
|
||||||
</plist>
|
</plist>
|
||||||
|
|||||||
@@ -78,4 +78,5 @@ class AppLink {
|
|||||||
static const String signUpCaptin = "$authCaptin/register.php";
|
static const String signUpCaptin = "$authCaptin/register.php";
|
||||||
static const String sendVerifyEmailCaptin = "$authCaptin/sendVerifyEmail.php";
|
static const String sendVerifyEmailCaptin = "$authCaptin/sendVerifyEmail.php";
|
||||||
static const String verifyEmailCaptin = "$authCaptin/verifyEmail.php";
|
static const String verifyEmailCaptin = "$authCaptin/verifyEmail.php";
|
||||||
|
static const String removeUser = "$authCaptin/removeAccount.php";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,6 +3,8 @@ import 'package:flutter/src/widgets/basic.dart';
|
|||||||
import 'package:get/get.dart';
|
import 'package:get/get.dart';
|
||||||
import 'package:ride/constant/box_name.dart';
|
import 'package:ride/constant/box_name.dart';
|
||||||
import 'package:ride/constant/colors.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/main.dart';
|
||||||
import 'package:ride/views/lang/languages.dart';
|
import 'package:ride/views/lang/languages.dart';
|
||||||
import 'package:ride/views/widgets/elevated_btn.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';
|
import '../../constant/style.dart';
|
||||||
|
|
||||||
class LogOut {
|
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 {
|
Future logOut() async {
|
||||||
Get.defaultDialog(
|
Get.defaultDialog(
|
||||||
title: 'Are you Sure to LogOut?'.tr,
|
title: 'Are you Sure to LogOut?'.tr,
|
||||||
|
|||||||
0
lib/views/Rate/rate_captain.dart
Normal file
0
lib/views/Rate/rate_captain.dart
Normal file
0
lib/views/Rate/rate_passenger.dart
Normal file
0
lib/views/Rate/rate_passenger.dart
Normal file
@@ -1,8 +1,10 @@
|
|||||||
import 'package:flutter/cupertino.dart';
|
import 'package:flutter/cupertino.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:get/get.dart';
|
import 'package:get/get.dart';
|
||||||
|
import 'package:ride/constant/box_name.dart';
|
||||||
import 'package:ride/constant/style.dart';
|
import 'package:ride/constant/style.dart';
|
||||||
import 'package:ride/controller/profile/profile_controller.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/elevated_btn.dart';
|
||||||
import 'package:ride/views/widgets/my_scafold.dart';
|
import 'package:ride/views/widgets/my_scafold.dart';
|
||||||
import 'package:ride/views/widgets/mycircular.dart';
|
import 'package:ride/views/widgets/mycircular.dart';
|
||||||
@@ -17,6 +19,11 @@ class PassengerProfilePage extends StatelessWidget {
|
|||||||
Get.put(ProfileController());
|
Get.put(ProfileController());
|
||||||
return MyScafolld(
|
return MyScafolld(
|
||||||
isleading: true,
|
isleading: true,
|
||||||
|
action: MyElevatedButton(
|
||||||
|
title: 'Delete My Account'.tr,
|
||||||
|
onPressed: () {
|
||||||
|
LogOut().deleteMyAccount(box.read(BoxName.pasengerID).toString());
|
||||||
|
}),
|
||||||
title: 'My Profile'.tr,
|
title: 'My Profile'.tr,
|
||||||
body: [
|
body: [
|
||||||
GetBuilder<ProfileController>(
|
GetBuilder<ProfileController>(
|
||||||
|
|||||||
Reference in New Issue
Block a user