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

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

Loading…
Cancel
Save