Update: 2026-06-14 22:10:07

This commit is contained in:
Hamza-Ayed
2026-06-14 22:10:08 +03:00
parent 8e3b9eca4d
commit f021ba5a35
21 changed files with 3669 additions and 636 deletions

View File

@@ -13,6 +13,7 @@ import 'package:siro_rider/main.dart';
import 'package:siro_rider/views/widgets/mycircular.dart';
import '../../../constant/style.dart';
import '../../../controller/functions/country_logic.dart';
import '../../../controller/functions/log_out.dart';
// ─────────────────────────────────────────────────────────────────────────────
@@ -721,9 +722,14 @@ class _PassengerProfilePageState extends State<PassengerProfilePage> {
_sheetSaveButton(
onPressed: () async {
Get.back();
// لو الحقل هو sosPhone، قم بتنسيق الرقم حسب الدولة الحالية
String value = tempCtrl.text.trim();
if (fieldKey == 'sosPhone' && value.isNotEmpty) {
value = CountryLogic.formatCurrentCountryPhone(value);
}
await controller.updateColumn({
'id': box.read(BoxName.passengerID).toString(),
fieldKey: tempCtrl.text.trim(),
fieldKey: value,
});
onSaved?.call();
},