4/12/7
This commit is contained in:
@@ -173,6 +173,7 @@ class FirebaseMessagesController extends GetxController {
|
||||
} else if (message.notification!.title! == 'RideIsBegin') {
|
||||
Get.find<MapPassengerController>().getBeginRideFromDriver();
|
||||
// Get.snackbar('RideIsBegin', '', backgroundColor: AppColor.greenColor);
|
||||
box.write(BoxName.passengerWalletTotal, '0');
|
||||
NotificationController()
|
||||
.showNotification('Trip is Begin'.tr, ''.tr, 'start');
|
||||
update();
|
||||
|
||||
@@ -481,6 +481,7 @@ class MapDriverController extends GetxController {
|
||||
});
|
||||
print('passengerWalletBurc aft ${double.parse(passengerWalletBurc)}');
|
||||
}
|
||||
|
||||
double pointsSubstraction = 0;
|
||||
pointsSubstraction = double.parse(paymentAmount) *
|
||||
(-1) *
|
||||
|
||||
@@ -668,6 +668,7 @@ class MapPassengerController extends GetxController {
|
||||
rideTimerBegin = false;
|
||||
box.write(BoxName.arrivalTime, '');
|
||||
remainingTimeTimerRideBegin = 0;
|
||||
box.write(BoxName.passengerWalletTotal, '0');
|
||||
update();
|
||||
}
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ class OrderHistoryController extends GetxController {
|
||||
'passenger_id': box.read(BoxName.passengerID).toString(),
|
||||
});
|
||||
if (res.toString() == 'failure') {
|
||||
Get.snackbar('failure', 'message');
|
||||
// Get.snackbar('failure', 'message');
|
||||
isloading = false;
|
||||
update();
|
||||
} else {
|
||||
|
||||
@@ -440,6 +440,7 @@ class MyTranslation extends Translations {
|
||||
'Submit Question': "طرح السؤال",
|
||||
'Please enter your Question.': "الرجاء إدخال سؤالك.",
|
||||
'Help Details': "تفاصيل المساعدة",
|
||||
'No trip yet found': 'لم يتم حجز أي رحلة بعد ',
|
||||
'No Response yet.': "لا يوجد رد بعد.",
|
||||
' You Earn today is ': " ما حصلت عليه اليوم هو",
|
||||
' You Have in': "لديك في",
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
import 'dart:convert';
|
||||
|
||||
import 'package:SEFER/constant/style.dart';
|
||||
import 'package:SEFER/views/widgets/elevated_btn.dart';
|
||||
import 'package:get/get.dart';
|
||||
import 'package:SEFER/constant/box_name.dart';
|
||||
import 'package:SEFER/constant/links.dart';
|
||||
@@ -16,11 +18,23 @@ class PassengerWalletHistoryController extends GetxController {
|
||||
var res = await CRUD().get(
|
||||
link: AppLink.getPassengerWalletArchive,
|
||||
payload: {'passenger_id': box.read(BoxName.passengerID)});
|
||||
|
||||
archive = jsonDecode(res)['message'];
|
||||
print(archive);
|
||||
isLoading = false;
|
||||
update();
|
||||
if (res != 'failure') {
|
||||
archive = jsonDecode(res)['message'];
|
||||
print(archive);
|
||||
isLoading = false;
|
||||
update();
|
||||
} else {}
|
||||
Get.defaultDialog(
|
||||
barrierDismissible: false,
|
||||
title: 'No wallet record found'.tr,
|
||||
titleStyle: AppStyle.title,
|
||||
middleText: '',
|
||||
confirm: MyElevatedButton(
|
||||
title: 'OK'.tr,
|
||||
onPressed: () {
|
||||
Get.back();
|
||||
Get.back();
|
||||
}));
|
||||
}
|
||||
|
||||
@override
|
||||
|
||||
Reference in New Issue
Block a user