|
|
|
|
@ -366,51 +366,51 @@ class _RegisterNew extends State<RegisterNewStep2> {
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(height: 50.h),
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
Expanded(
|
|
|
|
|
child: CustomButton(
|
|
|
|
|
text: LocaleKeys.cancel.tr(context: context),
|
|
|
|
|
icon: AppAssets.cancel,
|
|
|
|
|
onPressed: () {
|
|
|
|
|
Navigator.of(context).pop();
|
|
|
|
|
// authVM!.clearDefaultInputValues();
|
|
|
|
|
},
|
|
|
|
|
backgroundColor: AppColors.secondaryLightRedColor,
|
|
|
|
|
borderColor: AppColors.secondaryLightRedColor,
|
|
|
|
|
textColor: AppColors.primaryRedColor,
|
|
|
|
|
iconColor: AppColors.primaryRedColor,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(width: 16.w),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: CustomButton(
|
|
|
|
|
backgroundColor: AppColors.primaryRedColor,
|
|
|
|
|
borderColor: AppColors.primaryRedColor,
|
|
|
|
|
textColor: AppColors.whiteColor,
|
|
|
|
|
text: LocaleKeys.confirm.tr(context: context),
|
|
|
|
|
icon: AppAssets.confirm,
|
|
|
|
|
iconColor: AppColors.whiteColor,
|
|
|
|
|
onPressed: () {
|
|
|
|
|
if (appState.getUserRegistrationPayload.zipCode != CountryEnum.saudiArabia.countryCode) {
|
|
|
|
|
if (ValidationUtils.validateUaeRegistration(
|
|
|
|
|
name: authVM!.nameController.text,
|
|
|
|
|
gender: authVM!.genderType,
|
|
|
|
|
country: authVM!.pickedCountryByUAEUser,
|
|
|
|
|
maritalStatus: authVM!.maritalStatus,
|
|
|
|
|
onOkPress: () {
|
|
|
|
|
Navigator.of(context).pop();
|
|
|
|
|
})) {
|
|
|
|
|
showModel(context: context);
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
showModel(context: context);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
// Row(
|
|
|
|
|
// children: [
|
|
|
|
|
// Expanded(
|
|
|
|
|
// child: CustomButton(
|
|
|
|
|
// text: LocaleKeys.cancel.tr(context: context),
|
|
|
|
|
// icon: AppAssets.cancel,
|
|
|
|
|
// onPressed: () {
|
|
|
|
|
// Navigator.of(context).pop();
|
|
|
|
|
// // authVM!.clearDefaultInputValues();
|
|
|
|
|
// },
|
|
|
|
|
// backgroundColor: AppColors.secondaryLightRedColor,
|
|
|
|
|
// borderColor: AppColors.secondaryLightRedColor,
|
|
|
|
|
// textColor: AppColors.primaryRedColor,
|
|
|
|
|
// iconColor: AppColors.primaryRedColor,
|
|
|
|
|
// ),
|
|
|
|
|
// ),
|
|
|
|
|
// SizedBox(width: 16.w),
|
|
|
|
|
// Expanded(
|
|
|
|
|
// child: CustomButton(
|
|
|
|
|
// backgroundColor: AppColors.primaryRedColor,
|
|
|
|
|
// borderColor: AppColors.primaryRedColor,
|
|
|
|
|
// textColor: AppColors.whiteColor,
|
|
|
|
|
// text: LocaleKeys.confirm.tr(context: context),
|
|
|
|
|
// icon: AppAssets.confirm,
|
|
|
|
|
// iconColor: AppColors.whiteColor,
|
|
|
|
|
// onPressed: () {
|
|
|
|
|
// if (appState.getUserRegistrationPayload.zipCode != CountryEnum.saudiArabia.countryCode) {
|
|
|
|
|
// if (ValidationUtils.validateUaeRegistration(
|
|
|
|
|
// name: authVM!.nameController.text,
|
|
|
|
|
// gender: authVM!.genderType,
|
|
|
|
|
// country: authVM!.pickedCountryByUAEUser,
|
|
|
|
|
// maritalStatus: authVM!.maritalStatus,
|
|
|
|
|
// onOkPress: () {
|
|
|
|
|
// Navigator.of(context).pop();
|
|
|
|
|
// })) {
|
|
|
|
|
// showModel(context: context);
|
|
|
|
|
// }
|
|
|
|
|
// } else {
|
|
|
|
|
// showModel(context: context);
|
|
|
|
|
// }
|
|
|
|
|
// },
|
|
|
|
|
// ),
|
|
|
|
|
// )
|
|
|
|
|
// ],
|
|
|
|
|
// ),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
|