multiple submit button commented

dev_sultan
Sultan khan 1 week ago
parent d6eb6970af
commit acfab432cc

@ -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);
// }
// },
// ),
// )
// ],
// ),
],
),
),

@ -57,7 +57,7 @@ class _SplashScreenState extends State<SplashPage> {
await notificationService.initialize(onNotificationClick: (payload) {
// Handle notification click here
});
ZoomService().initializeZoomSDK();
//ZoomService().initializeZoomSDK();
if (isAppOpenedFromCall) {
navigateToTeleConsult();
} else {

Loading…
Cancel
Save