feat: add Nabeh payment verification proxy and update UI components

This commit is contained in:
Hamza-Ayed
2026-07-11 22:14:37 +03:00
parent de761c1d97
commit 83f5bf516b
5 changed files with 74 additions and 10 deletions
+5 -2
View File
@@ -9,6 +9,7 @@ import '../../controller/local/phone_intel/intl_phone_field.dart';
import '../../controller/functions/country_logic.dart';
import '../../constant/box_name.dart';
import '../../main.dart';
import '../home/map_widget.dart/left_main_menu_icons.dart';
// ─────────────────────────────────────────────────────────────────────────────
// SHARED DESIGN TOKENS
@@ -488,7 +489,8 @@ class _PhoneNumberScreenState extends State<PhoneNumberScreen> {
const BorderSide(color: Color(0xFFEF4444), width: 1.5),
),
),
initialCountryCode: CountryLogic.getCountryPrefix(box.read(BoxName.countryCode) ?? 'Syria'),
initialCountryCode: CountryLogic.getCountryPrefix(
box.read(BoxName.countryCode) ?? 'Syria'),
onChanged: (phone) {
_phoneController.text = phone.completeNumber;
},
@@ -540,7 +542,8 @@ class _OtpVerificationScreenState extends State<OtpVerificationScreen> {
void _submit() async {
if (_formKey.currentState!.validate()) {
setState(() => _isLoading = true);
await PhoneAuthHelper.verifyOtp(widget.phoneNumber, _otpController.text.trim());
await PhoneAuthHelper.verifyOtp(
widget.phoneNumber, _otpController.text.trim());
if (mounted) setState(() => _isLoading = false);
}
}