Update: 2026-06-25 00:50:19
This commit is contained in:
@@ -4054,15 +4054,10 @@ class RideLifecycleController extends GetxController {
|
||||
final bool isLoggedIn = box.read(BoxName.isVerified) == '1' &&
|
||||
box.read(BoxName.passengerID) != null;
|
||||
|
||||
if (isLoggedIn) {
|
||||
isDataInitializedAfterLogin = true;
|
||||
getLocationArea(passengerLocation.latitude, passengerLocation.longitude);
|
||||
unawaited(_stagePricingAndState());
|
||||
unawaited(_stageNiceToHave());
|
||||
startMasterTimer();
|
||||
} else {
|
||||
Log.print("RideLifecycleController.onInit: User not logged in, skipping startup API calls.");
|
||||
}
|
||||
// We intentionally DO NOT initialize data here during onInit
|
||||
// because this controller is instantiated globally before the map is opened.
|
||||
// Initialization will be triggered by MapPagePassenger calling initializeDataAfterLogin()
|
||||
Log.print("RideLifecycleController.onInit: Waiting for MapPagePassenger to trigger initialization.");
|
||||
}
|
||||
|
||||
Future<void> initializeDataAfterLogin() async {
|
||||
|
||||
Reference in New Issue
Block a user