This commit is contained in:
Hamza-Ayed
2024-06-30 13:27:23 +03:00
parent 08d31bc4d1
commit 176f5105b1
25 changed files with 465 additions and 154 deletions

View File

@@ -14,7 +14,7 @@ class ProfileController extends GetxController {
bool isloading = false;
Map prfoileData = {};
TextEditingController txtController = TextEditingController();
List genders = ['Male', 'Female', 'Non-binary'];
List genders = ['Male', 'Female', 'Other'];
String gender = 'Male';
@@ -99,6 +99,10 @@ class ProfileController extends GetxController {
} else {
var jsonDecoded = jsonDecode(res);
prfoileData = jsonDecoded['data'];
box.write(BoxName.sosPhonePassenger, prfoileData['sosPhone'].toString());
box.write(BoxName.gender, prfoileData['gender'].toString());
box.write(BoxName.name,
'${prfoileData['first_name']} ${prfoileData['last_name']}');
isloading = false;
update();
}