Update: 2026-06-14 22:10:07
This commit is contained in:
@@ -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();
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user