feat: add Nabeh payment verification proxy and update UI components
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user