This commit is contained in:
Hamza-Ayed
2023-09-15 21:36:45 +03:00
parent 58aa82c3f3
commit 9aa1d3091e
8 changed files with 47 additions and 35 deletions

View File

@@ -100,14 +100,25 @@ class LoginCaptinController extends GetxController {
}
}
// goToMapPage() {
// if (box.read(BoxName.email) != null) {
// Get.offAll(() => const MapPage());
// }
// }
void loginByBoxData() async {
isloading = true;
update();
await CRUD().post(link: AppLink.addTokensDriver, payload: {
'token': box.read(BoxName.tokenDriver).toString(),
'captain_id': box.read(BoxName.driverID).toString()
});
isloading = false;
update();
}
@override
void onInit() {
super.onInit();
if (box.read(BoxName.driverID) != null ||
box.read(BoxName.driverID) != '') {
loginByBoxData();
}
}
}

View File

@@ -87,6 +87,8 @@ class MyTranslation extends Translations {
"MyLocation": "موقعي",
"my location": "موقعي",
"Target": "هدف",
"By selecting \"I Agree\" below, I have reviewed and agree to the Terms of Use and acknowledge the Privacy Notice. I am at least 18 years of age.":
"بتحديد \"أوافق\" أدناه ، فإنني أوافق على مراجعة وقبول شروط الاستخدام وإقرار إشعار الخصوصية. أنا على الأقل 18 عامًا من العمر.",
/////
///
// 'Saved Sucssefully':
@@ -176,7 +178,9 @@ class MyTranslation extends Translations {
"Are you want to go to this site": "Bu siteye gitmek istiyor musunuz",
"MyLocation": "Konumum",
"my location": "konumum",
"Target": "Hedef"
"Target": "Hedef",
"By selecting \"I Agree\" below, I have reviewed and agree to the Terms of Use and acknowledge the Privacy Notice. I am at least 18 years of age.":
"Aşağıdaki \"Kabul Ediyorum\" seçeneğini seçerek, Kullanım Koşullarını gözden geçirdiğimi ve kabul ettiğimi ve Gizlilik Bildirimini kabul ettiğimi beyan ederim. En az 18 yaşındayım."
},
"en": {
"Choose Language": "Choose Language",