4/7/6
This commit is contained in:
@@ -119,6 +119,8 @@ class MapPassengerController extends GetxController {
|
||||
double heavyPrice = 0;
|
||||
double naturePrice = 0;
|
||||
bool heightMenuBool = false;
|
||||
String statusRide = 'wait';
|
||||
bool statusRideFromStart = false;
|
||||
bool isPickerShown = false;
|
||||
bool isPointsPageForRider = false;
|
||||
bool isBottomSheetShown = false;
|
||||
@@ -691,6 +693,7 @@ class MapPassengerController extends GetxController {
|
||||
}
|
||||
}
|
||||
|
||||
Map rideStatusFromStartApp = {};
|
||||
getRideStatusFromStartApp() async {
|
||||
try {
|
||||
var res = await CRUD().get(
|
||||
@@ -699,14 +702,13 @@ class MapPassengerController extends GetxController {
|
||||
if (res == 'failure') {
|
||||
//print(res);
|
||||
}
|
||||
var decode = jsonDecode(res);
|
||||
print(decode['data']);
|
||||
if (decode['data'] == 'Begin') {
|
||||
rideStatusFromStartApp = jsonDecode(res);
|
||||
print(rideStatusFromStartApp['data']['status']);
|
||||
if (rideStatusFromStartApp['data']['status'] == 'Begin') {
|
||||
statusRide = 'Begin';
|
||||
statusRideFromStart = true;
|
||||
update();
|
||||
// todo from sql or get storage
|
||||
// List<dynamic> pol = box.read(BoxName.tripData);
|
||||
// print(pol);
|
||||
|
||||
Map<String, dynamic> tripData =
|
||||
box.read(BoxName.tripData) as Map<String, dynamic>;
|
||||
print(tripData);
|
||||
@@ -1011,7 +1013,6 @@ class MapPassengerController extends GetxController {
|
||||
update();
|
||||
}
|
||||
|
||||
String statusRide = 'wait';
|
||||
void delayAndFetchRideStatus(String rideId) {
|
||||
Timer(const Duration(milliseconds: 200), () async {
|
||||
if (shouldFetch) {
|
||||
|
||||
Reference in New Issue
Block a user