|  |  |  | @ -2,6 +2,7 @@ import 'dart:convert'; | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  | import 'package:easy_localization/easy_localization.dart'; | 
		
	
		
			
				|  |  |  |  | import 'package:flutter/material.dart'; | 
		
	
		
			
				|  |  |  |  | import 'package:get_it/get_it.dart'; | 
		
	
		
			
				|  |  |  |  | import 'package:hmg_patient_app_new/core/app_assets.dart'; | 
		
	
		
			
				|  |  |  |  | import 'package:hmg_patient_app_new/core/app_state.dart'; | 
		
	
		
			
				|  |  |  |  | import 'package:hmg_patient_app_new/core/common_models/nationality_country_model.dart'; | 
		
	
	
		
			
				
					|  |  |  | @ -11,6 +12,7 @@ import 'package:hmg_patient_app_new/core/utils/size_utils.dart'; | 
		
	
		
			
				|  |  |  |  | import 'package:hmg_patient_app_new/extensions/context_extensions.dart'; | 
		
	
		
			
				|  |  |  |  | import 'package:hmg_patient_app_new/extensions/string_extensions.dart'; | 
		
	
		
			
				|  |  |  |  | import 'package:hmg_patient_app_new/extensions/widget_extensions.dart'; | 
		
	
		
			
				|  |  |  |  | import 'package:hmg_patient_app_new/features/authentication/authentication_view_model.dart'; | 
		
	
		
			
				|  |  |  |  | import 'package:hmg_patient_app_new/generated/locale_keys.g.dart'; | 
		
	
		
			
				|  |  |  |  | import 'package:hmg_patient_app_new/theme/colors.dart'; | 
		
	
		
			
				|  |  |  |  | import 'package:hmg_patient_app_new/widgets/appbar/app_bar_widget.dart'; | 
		
	
	
		
			
				
					|  |  |  | @ -18,6 +20,7 @@ import 'package:hmg_patient_app_new/widgets/bottomsheet/generic_bottom_sheet.dar | 
		
	
		
			
				|  |  |  |  | import 'package:hmg_patient_app_new/widgets/buttons/custom_button.dart'; | 
		
	
		
			
				|  |  |  |  | import 'package:hmg_patient_app_new/widgets/dropdown/dropdown_widget.dart'; | 
		
	
		
			
				|  |  |  |  | import 'package:hmg_patient_app_new/widgets/input_widget.dart'; | 
		
	
		
			
				|  |  |  |  | import 'package:provider/provider.dart'; | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  | class RegisterNewStep2 extends StatefulWidget { | 
		
	
		
			
				|  |  |  |  |   var nHICData; | 
		
	
	
		
			
				
					|  |  |  | @ -31,30 +34,31 @@ class RegisterNewStep2 extends StatefulWidget { | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  | class _RegisterNew extends State<RegisterNewStep2> { | 
		
	
		
			
				|  |  |  |  |   bool isFromDubai = true; | 
		
	
		
			
				|  |  |  |  |   List<NationalityCountries> countriesList = []; | 
		
	
		
			
				|  |  |  |  |   AppState? appState; | 
		
	
		
			
				|  |  |  |  |   GenderTypeEnum? selectedGenderType; | 
		
	
		
			
				|  |  |  |  |   MaritalStatusTypeEnum? selectedMaritalStatusType; | 
		
	
		
			
				|  |  |  |  |   CountryEnum? selectedCountry; | 
		
	
		
			
				|  |  |  |  |   AuthenticationViewModel? authVM; | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  |   @override | 
		
	
		
			
				|  |  |  |  |   void initState() { | 
		
	
		
			
				|  |  |  |  |     super.initState(); | 
		
	
		
			
				|  |  |  |  |     authVM = context.read<AuthenticationViewModel>(); | 
		
	
		
			
				|  |  |  |  |     authVM!.loadCountriesData(context: context); | 
		
	
		
			
				|  |  |  |  |     // isFromDubai = widget.payload.zipCode!.contains("971") || widget.payload.zipCode!.contains("+971"); | 
		
	
		
			
				|  |  |  |  |     loadCountriesList(); | 
		
	
		
			
				|  |  |  |  |   } | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  |   loadCountriesList() async { | 
		
	
		
			
				|  |  |  |  |     appState = getIt.get<AppState>(); | 
		
	
		
			
				|  |  |  |  |     final String response = await DefaultAssetBundle.of(context).loadString('assets/json/countriesList.json'); | 
		
	
		
			
				|  |  |  |  |     final List<dynamic> data = json.decode(response); | 
		
	
		
			
				|  |  |  |  |     countriesList = data.map((e) => NationalityCountries.fromJson(e)).toList(); | 
		
	
		
			
				|  |  |  |  |   @override | 
		
	
		
			
				|  |  |  |  |   void dispose() { | 
		
	
		
			
				|  |  |  |  |     super.dispose(); | 
		
	
		
			
				|  |  |  |  |     authVM!.clearDefaults(); | 
		
	
		
			
				|  |  |  |  |   } | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  |   @override | 
		
	
		
			
				|  |  |  |  |   Widget build(BuildContext context) { | 
		
	
		
			
				|  |  |  |  |     AppState appState = getIt.get<AppState>(); | 
		
	
		
			
				|  |  |  |  |     return Scaffold( | 
		
	
		
			
				|  |  |  |  |       appBar: CustomAppBar( | 
		
	
		
			
				|  |  |  |  |         onBackPressed: () {}, | 
		
	
		
			
				|  |  |  |  |         onBackPressed: () { | 
		
	
		
			
				|  |  |  |  |           Navigator.of(context).pop(); | 
		
	
		
			
				|  |  |  |  |           authVM!.clearDefaults(); | 
		
	
		
			
				|  |  |  |  |         }, | 
		
	
		
			
				|  |  |  |  |         onLanguageChanged: (lang) {}, | 
		
	
		
			
				|  |  |  |  |         hideLogoAndLang: true, | 
		
	
		
			
				|  |  |  |  |       ), | 
		
	
	
		
			
				
					|  |  |  | @ -84,10 +88,7 @@ class _RegisterNew extends State<RegisterNewStep2> { | 
		
	
		
			
				|  |  |  |  |                             isReadOnly: isFromDubai ? false : true, | 
		
	
		
			
				|  |  |  |  |                             leadingIcon: AppAssets.user_circle) | 
		
	
		
			
				|  |  |  |  |                         .paddingSymmetrical(0.h, 16.h), | 
		
	
		
			
				|  |  |  |  |                     Divider( | 
		
	
		
			
				|  |  |  |  |                       height: 1, | 
		
	
		
			
				|  |  |  |  |                       color: AppColors.greyColor, | 
		
	
		
			
				|  |  |  |  |                     ), | 
		
	
		
			
				|  |  |  |  |                     Divider(height: 1, color: AppColors.greyColor), | 
		
	
		
			
				|  |  |  |  |                     TextInputWidget( | 
		
	
		
			
				|  |  |  |  |                             labelText: LocaleKeys.nationalIdNumber.tr(), | 
		
	
		
			
				|  |  |  |  |                             hintText: isFromDubai ? "widget.payload.nationalID!" : (widget.nHICData!.idNumber ?? ""), | 
		
	
	
		
			
				
					|  |  |  | @ -100,28 +101,28 @@ class _RegisterNew extends State<RegisterNewStep2> { | 
		
	
		
			
				|  |  |  |  |                             isReadOnly: true, | 
		
	
		
			
				|  |  |  |  |                             leadingIcon: AppAssets.student_card) | 
		
	
		
			
				|  |  |  |  |                         .paddingSymmetrical(0.h, 16.h), | 
		
	
		
			
				|  |  |  |  |                     Divider( | 
		
	
		
			
				|  |  |  |  |                       height: 1, | 
		
	
		
			
				|  |  |  |  |                       color: AppColors.greyColor, | 
		
	
		
			
				|  |  |  |  |                     ), | 
		
	
		
			
				|  |  |  |  |                     Divider(height: 1, color: AppColors.greyColor), | 
		
	
		
			
				|  |  |  |  |                     isFromDubai | 
		
	
		
			
				|  |  |  |  |                         ? DropdownWidget( | 
		
	
		
			
				|  |  |  |  |                             labelText: LocaleKeys.gender.tr(), | 
		
	
		
			
				|  |  |  |  |                             hintText: LocaleKeys.malE.tr(), | 
		
	
		
			
				|  |  |  |  |                             isEnable: true, | 
		
	
		
			
				|  |  |  |  |                             dropdownItems: GenderTypeEnum.values.map((e) => appState!.isArabic() ? e.typeAr : e.type).toList(), | 
		
	
		
			
				|  |  |  |  |                             selectedValue: appState!.isArabic() ? selectedGenderType!.typeAr : selectedGenderType?.type, | 
		
	
		
			
				|  |  |  |  |                             // selectionType: SelectionType.dropdown, | 
		
	
		
			
				|  |  |  |  |                             onChange: (val) { | 
		
	
		
			
				|  |  |  |  |                               if (val != null) {} | 
		
	
		
			
				|  |  |  |  |                             }, | 
		
	
		
			
				|  |  |  |  |                             isBorderAllowed: false, | 
		
	
		
			
				|  |  |  |  |                             hasSelectionCustomIcon: true, | 
		
	
		
			
				|  |  |  |  |                             isAllowRadius: false, | 
		
	
		
			
				|  |  |  |  |                             padding: const EdgeInsets.only(top: 8, bottom: 8, left: 0, right: 0), | 
		
	
		
			
				|  |  |  |  |                             selectionCustomIcon: AppAssets.arrow_down, | 
		
	
		
			
				|  |  |  |  |                             leadingIcon: AppAssets.user_full, | 
		
	
		
			
				|  |  |  |  |                           ).withVerticalPadding(8) | 
		
	
		
			
				|  |  |  |  |                         ? Selector<AuthenticationViewModel, GenderTypeEnum?>( | 
		
	
		
			
				|  |  |  |  |                             selector: (_, authViewModel) => authViewModel.genderType, | 
		
	
		
			
				|  |  |  |  |                             shouldRebuild: (previous, next) => previous != next, | 
		
	
		
			
				|  |  |  |  |                             builder: (context, genderType, child) { | 
		
	
		
			
				|  |  |  |  |                               final authVM = context.read<AuthenticationViewModel>(); | 
		
	
		
			
				|  |  |  |  |                               return DropdownWidget( | 
		
	
		
			
				|  |  |  |  |                                 labelText: LocaleKeys.gender.tr(), | 
		
	
		
			
				|  |  |  |  |                                 hintText: LocaleKeys.malE.tr(), | 
		
	
		
			
				|  |  |  |  |                                 isEnable: true, | 
		
	
		
			
				|  |  |  |  |                                 dropdownItems: GenderTypeEnum.values.map((e) => appState!.isArabic() ? e.typeAr : e.type).toList(), | 
		
	
		
			
				|  |  |  |  |                                 selectedValue: genderType != null ? (appState!.isArabic() ? genderType!.typeAr : genderType!.type) : "", | 
		
	
		
			
				|  |  |  |  |                                 onChange: authVM.onGenderChange, | 
		
	
		
			
				|  |  |  |  |                                 isBorderAllowed: false, | 
		
	
		
			
				|  |  |  |  |                                 hasSelectionCustomIcon: true, | 
		
	
		
			
				|  |  |  |  |                                 isAllowRadius: false, | 
		
	
		
			
				|  |  |  |  |                                 padding: const EdgeInsets.only(top: 8, bottom: 8, left: 0, right: 0), | 
		
	
		
			
				|  |  |  |  |                                 selectionCustomIcon: AppAssets.arrow_down, | 
		
	
		
			
				|  |  |  |  |                                 leadingIcon: AppAssets.user_full, | 
		
	
		
			
				|  |  |  |  |                               ).withVerticalPadding(8); | 
		
	
		
			
				|  |  |  |  |                             }) | 
		
	
		
			
				|  |  |  |  |                         : TextInputWidget( | 
		
	
		
			
				|  |  |  |  |                                 labelText: LocaleKeys.gender.tr(), | 
		
	
		
			
				|  |  |  |  |                                 hintText: (widget.nHICData!.gender ?? ""), | 
		
	
	
		
			
				
					|  |  |  | @ -135,25 +136,29 @@ class _RegisterNew extends State<RegisterNewStep2> { | 
		
	
		
			
				|  |  |  |  |                                 leadingIcon: AppAssets.user_full, | 
		
	
		
			
				|  |  |  |  |                                 onChange: (value) {}) | 
		
	
		
			
				|  |  |  |  |                             .paddingSymmetrical(0.h, 16.h), | 
		
	
		
			
				|  |  |  |  |                     Divider( | 
		
	
		
			
				|  |  |  |  |                       height: 1, | 
		
	
		
			
				|  |  |  |  |                       color: AppColors.greyColor, | 
		
	
		
			
				|  |  |  |  |                     ), | 
		
	
		
			
				|  |  |  |  |                     Divider(height: 1, color: AppColors.greyColor), | 
		
	
		
			
				|  |  |  |  |                     isFromDubai | 
		
	
		
			
				|  |  |  |  |                         ? DropdownWidget( | 
		
	
		
			
				|  |  |  |  |                             labelText: LocaleKeys.maritalStatus.tr(), | 
		
	
		
			
				|  |  |  |  |                             hintText: LocaleKeys.married.tr(), | 
		
	
		
			
				|  |  |  |  |                             isEnable: true, | 
		
	
		
			
				|  |  |  |  |                             dropdownItems: MaritalStatusTypeEnum.values.map((e) => appState!.isArabic() ? e.typeAr : e.type).toList(), | 
		
	
		
			
				|  |  |  |  |                             selectedValue: appState!.isArabic() ? selectedMaritalStatusType!.typeAr : selectedMaritalStatusType?.type, | 
		
	
		
			
				|  |  |  |  |                             onChange: (val) {}, | 
		
	
		
			
				|  |  |  |  |                             isBorderAllowed: false, | 
		
	
		
			
				|  |  |  |  |                             hasSelectionCustomIcon: true, | 
		
	
		
			
				|  |  |  |  |                             isAllowRadius: false, | 
		
	
		
			
				|  |  |  |  |                             padding: const EdgeInsets.only(top: 8, bottom: 8, left: 0, right: 0), | 
		
	
		
			
				|  |  |  |  |                             selectionCustomIcon: AppAssets.arrow_down, | 
		
	
		
			
				|  |  |  |  |                             leadingIcon: AppAssets.smart_phone, | 
		
	
		
			
				|  |  |  |  |                           ).withVerticalPadding(8) | 
		
	
		
			
				|  |  |  |  |                         ? Selector<AuthenticationViewModel, MaritalStatusTypeEnum?>( | 
		
	
		
			
				|  |  |  |  |                             selector: (_, authViewModel) => authViewModel.maritalStatus, | 
		
	
		
			
				|  |  |  |  |                             shouldRebuild: (previous, next) => previous != next, | 
		
	
		
			
				|  |  |  |  |                             builder: (context, maritalStatus, child) { | 
		
	
		
			
				|  |  |  |  |                               final authVM = context.read<AuthenticationViewModel>(); // For onChange | 
		
	
		
			
				|  |  |  |  |                               return DropdownWidget( | 
		
	
		
			
				|  |  |  |  |                                 labelText: LocaleKeys.maritalStatus.tr(), | 
		
	
		
			
				|  |  |  |  |                                 hintText: LocaleKeys.married.tr(), | 
		
	
		
			
				|  |  |  |  |                                 isEnable: true, | 
		
	
		
			
				|  |  |  |  |                                 dropdownItems: MaritalStatusTypeEnum.values.map((e) => appState!.isArabic() ? e.typeAr : e.type).toList(), | 
		
	
		
			
				|  |  |  |  |                                 selectedValue: maritalStatus != null ? (appState!.isArabic() ? maritalStatus.typeAr : maritalStatus.type) : "", | 
		
	
		
			
				|  |  |  |  |                                 onChange: authVM.onMaritalStatusChange, | 
		
	
		
			
				|  |  |  |  |                                 isBorderAllowed: false, | 
		
	
		
			
				|  |  |  |  |                                 hasSelectionCustomIcon: true, | 
		
	
		
			
				|  |  |  |  |                                 isAllowRadius: false, | 
		
	
		
			
				|  |  |  |  |                                 padding: const EdgeInsets.only(top: 8, bottom: 8, left: 0, right: 0), | 
		
	
		
			
				|  |  |  |  |                                 selectionCustomIcon: AppAssets.arrow_down, | 
		
	
		
			
				|  |  |  |  |                                 leadingIcon: AppAssets.smart_phone, | 
		
	
		
			
				|  |  |  |  |                               ).withVerticalPadding(8); | 
		
	
		
			
				|  |  |  |  |                             }, | 
		
	
		
			
				|  |  |  |  |                           ) | 
		
	
		
			
				|  |  |  |  |                         : TextInputWidget( | 
		
	
		
			
				|  |  |  |  |                                 labelText: LocaleKeys.maritalStatus.tr(), | 
		
	
		
			
				|  |  |  |  |                                 hintText: appState!.isArabic() | 
		
	
	
		
			
				
					|  |  |  | @ -168,30 +173,41 @@ class _RegisterNew extends State<RegisterNewStep2> { | 
		
	
		
			
				|  |  |  |  |                                 leadingIcon: AppAssets.smart_phone, | 
		
	
		
			
				|  |  |  |  |                                 onChange: (value) {}) | 
		
	
		
			
				|  |  |  |  |                             .paddingSymmetrical(0.h, 16.h), | 
		
	
		
			
				|  |  |  |  |                     Divider( | 
		
	
		
			
				|  |  |  |  |                       height: 1, | 
		
	
		
			
				|  |  |  |  |                       color: AppColors.greyColor, | 
		
	
		
			
				|  |  |  |  |                     ), | 
		
	
		
			
				|  |  |  |  |                     Divider(height: 1, color: AppColors.greyColor), | 
		
	
		
			
				|  |  |  |  |                     isFromDubai | 
		
	
		
			
				|  |  |  |  |                         ? DropdownWidget( | 
		
	
		
			
				|  |  |  |  |                             labelText: LocaleKeys.country.tr(), | 
		
	
		
			
				|  |  |  |  |                             hintText: LocaleKeys.uae.tr(), | 
		
	
		
			
				|  |  |  |  |                             isEnable: true, | 
		
	
		
			
				|  |  |  |  |                             dropdownItems: countriesList.map((e) => appState!.isArabic() ? e.nameN ?? "" : e.name ?? "").toList(), | 
		
	
		
			
				|  |  |  |  |                             selectedValue: appState!.isArabic() ? selectedCountry!.nameArabic ?? "" : selectedCountry?.name ?? "", | 
		
	
		
			
				|  |  |  |  |                             onChange: (val) {}, | 
		
	
		
			
				|  |  |  |  |                             isBorderAllowed: false, | 
		
	
		
			
				|  |  |  |  |                             hasSelectionCustomIcon: true, | 
		
	
		
			
				|  |  |  |  |                             isAllowRadius: false, | 
		
	
		
			
				|  |  |  |  |                             padding: const EdgeInsets.only(top: 8, bottom: 8, left: 0, right: 0), | 
		
	
		
			
				|  |  |  |  |                             selectionCustomIcon: AppAssets.arrow_down, | 
		
	
		
			
				|  |  |  |  |                             leadingIcon: AppAssets.globe, | 
		
	
		
			
				|  |  |  |  |                           ).withVerticalPadding(8) | 
		
	
		
			
				|  |  |  |  |                         ? Selector<AuthenticationViewModel, ({List<NationalityCountries>? countriesList, NationalityCountries? selectedCountry, bool isArabic})>( | 
		
	
		
			
				|  |  |  |  |                             selector: (context, authViewModel) { | 
		
	
		
			
				|  |  |  |  |                               final appState = getIt.get<AppState>(); | 
		
	
		
			
				|  |  |  |  |                               return (countriesList: authViewModel.countriesList, selectedCountry: authViewModel.pickedCountryByUAEUser, isArabic: appState.isArabic()); | 
		
	
		
			
				|  |  |  |  |                             }, | 
		
	
		
			
				|  |  |  |  |                             shouldRebuild: (previous, next) => previous.countriesList != next.countriesList || previous.selectedCountry != next.selectedCountry || previous.isArabic != next.isArabic, | 
		
	
		
			
				|  |  |  |  |                             builder: (context, data, child) { | 
		
	
		
			
				|  |  |  |  |                               final authVM = context.read<AuthenticationViewModel>(); | 
		
	
		
			
				|  |  |  |  |                               return DropdownWidget( | 
		
	
		
			
				|  |  |  |  |                                 labelText: LocaleKeys.country.tr(), | 
		
	
		
			
				|  |  |  |  |                                 hintText: LocaleKeys.uae.tr(), | 
		
	
		
			
				|  |  |  |  |                                 isEnable: true, | 
		
	
		
			
				|  |  |  |  |                                 dropdownItems: (data.countriesList ?? []).map((e) => data.isArabic ? e.nameN ?? "" : e.name ?? "").toList(), | 
		
	
		
			
				|  |  |  |  |                                 selectedValue: data.selectedCountry != null | 
		
	
		
			
				|  |  |  |  |                                     ? data.isArabic | 
		
	
		
			
				|  |  |  |  |                                         ? data.selectedCountry!.nameN ?? "" | 
		
	
		
			
				|  |  |  |  |                                         : data.selectedCountry!.name ?? "" | 
		
	
		
			
				|  |  |  |  |                                     : "", | 
		
	
		
			
				|  |  |  |  |                                 onChange: authVM.onUAEUserCountrySelection, | 
		
	
		
			
				|  |  |  |  |                                 isBorderAllowed: false, | 
		
	
		
			
				|  |  |  |  |                                 hasSelectionCustomIcon: true, | 
		
	
		
			
				|  |  |  |  |                                 isAllowRadius: false, | 
		
	
		
			
				|  |  |  |  |                                 padding: const EdgeInsets.only(top: 8, bottom: 8, left: 0, right: 0), | 
		
	
		
			
				|  |  |  |  |                                 selectionCustomIcon: AppAssets.arrow_down, | 
		
	
		
			
				|  |  |  |  |                                 leadingIcon: AppAssets.globe, | 
		
	
		
			
				|  |  |  |  |                               ).withVerticalPadding(8); | 
		
	
		
			
				|  |  |  |  |                             }, | 
		
	
		
			
				|  |  |  |  |                           ) | 
		
	
		
			
				|  |  |  |  |                         : TextInputWidget( | 
		
	
		
			
				|  |  |  |  |                                 labelText: LocaleKeys.nationality.tr(), | 
		
	
		
			
				|  |  |  |  |                                 hintText: appState!.isArabic() | 
		
	
		
			
				|  |  |  |  |                                     ? (countriesList.firstWhere((e) => e.id == (widget.nHICData!.nationalityCode ?? ""), orElse: () => NationalityCountries()).nameN ?? "") | 
		
	
		
			
				|  |  |  |  |                                     : (countriesList.firstWhere((e) => e.id == (widget.nHICData!.nationalityCode ?? ""), orElse: () => NationalityCountries()).name ?? ""), | 
		
	
		
			
				|  |  |  |  |                                 hintText: appState.isArabic() | 
		
	
		
			
				|  |  |  |  |                                     ? (authVM!.countriesList!.firstWhere((e) => e.id == (widget.nHICData!.nationalityCode ?? ""), orElse: () => NationalityCountries()).nameN ?? "") | 
		
	
		
			
				|  |  |  |  |                                     : (authVM!.countriesList!.firstWhere((e) => e.id == (widget.nHICData!.nationalityCode ?? ""), orElse: () => NationalityCountries()).name ?? ""), | 
		
	
		
			
				|  |  |  |  |                                 isEnable: true, | 
		
	
		
			
				|  |  |  |  |                                 prefix: null, | 
		
	
		
			
				|  |  |  |  |                                 isAllowRadius: false, | 
		
	
	
		
			
				
					|  |  |  | @ -208,7 +224,7 @@ class _RegisterNew extends State<RegisterNewStep2> { | 
		
	
		
			
				|  |  |  |  |                     TextInputWidget( | 
		
	
		
			
				|  |  |  |  |                             labelText: LocaleKeys.mobileNumber.tr(), | 
		
	
		
			
				|  |  |  |  |                             hintText: ("widget.payload.mobileNo" ?? ""), | 
		
	
		
			
				|  |  |  |  |                             controller: null, | 
		
	
		
			
				|  |  |  |  |                             controller: authVM!.phoneNumberController, | 
		
	
		
			
				|  |  |  |  |                             isEnable: true, | 
		
	
		
			
				|  |  |  |  |                             prefix: null, | 
		
	
		
			
				|  |  |  |  |                             isAllowRadius: false, | 
		
	
	
		
			
				
					|  |  |  | @ -223,20 +239,17 @@ class _RegisterNew extends State<RegisterNewStep2> { | 
		
	
		
			
				|  |  |  |  |                       color: AppColors.greyColor, | 
		
	
		
			
				|  |  |  |  |                     ), | 
		
	
		
			
				|  |  |  |  |                     TextInputWidget( | 
		
	
		
			
				|  |  |  |  |                             labelText: LocaleKeys.dob.tr(), | 
		
	
		
			
				|  |  |  |  |                             hintText: isFromDubai ? "widget.payload.dob!" : (widget.nHICData!.dateOfBirth ?? ""), | 
		
	
		
			
				|  |  |  |  |                             controller: null, | 
		
	
		
			
				|  |  |  |  |                             isEnable: true, | 
		
	
		
			
				|  |  |  |  |                             prefix: null, | 
		
	
		
			
				|  |  |  |  |                             isBorderAllowed: false, | 
		
	
		
			
				|  |  |  |  |                             isAllowLeadingIcon: true, | 
		
	
		
			
				|  |  |  |  |                             isReadOnly: true, | 
		
	
		
			
				|  |  |  |  |                             // : SelectionType.calendar, | 
		
	
		
			
				|  |  |  |  |                             // selectedValue: widget.payload.dob != null ? Utils.formatDateToDisplay(widget.payload.dob.toString()) : null, | 
		
	
		
			
				|  |  |  |  |                             // selectionCustomIcon: AppAssets.calendar, | 
		
	
		
			
				|  |  |  |  |                             leadingIcon: AppAssets.birthday_cake, | 
		
	
		
			
				|  |  |  |  |                             onChange: (value) {}) | 
		
	
		
			
				|  |  |  |  |                         .paddingSymmetrical(0.h, 16.h), | 
		
	
		
			
				|  |  |  |  |                       labelText: LocaleKeys.dob.tr(), | 
		
	
		
			
				|  |  |  |  |                       hintText: isFromDubai ? "widget.payload.dob!" : (widget.nHICData!.dateOfBirth ?? ""), | 
		
	
		
			
				|  |  |  |  |                       controller: authVM!.dobController, | 
		
	
		
			
				|  |  |  |  |                       isEnable: true, | 
		
	
		
			
				|  |  |  |  |                       prefix: null, | 
		
	
		
			
				|  |  |  |  |                       isBorderAllowed: false, | 
		
	
		
			
				|  |  |  |  |                       isAllowLeadingIcon: true, | 
		
	
		
			
				|  |  |  |  |                       isReadOnly: true, | 
		
	
		
			
				|  |  |  |  |                       leadingIcon: AppAssets.birthday_cake, | 
		
	
		
			
				|  |  |  |  |                       selectionType: SelectionTypeEnum.calendar, | 
		
	
		
			
				|  |  |  |  |                     ).paddingSymmetrical(0.h, 16.h), | 
		
	
		
			
				|  |  |  |  |                   ], | 
		
	
		
			
				|  |  |  |  |                 ), | 
		
	
		
			
				|  |  |  |  |               ), | 
		
	
	
		
			
				
					|  |  |  | @ -246,12 +259,12 @@ class _RegisterNew extends State<RegisterNewStep2> { | 
		
	
		
			
				|  |  |  |  |               children: [ | 
		
	
		
			
				|  |  |  |  |                 Expanded( | 
		
	
		
			
				|  |  |  |  |                   child: CustomButton( | 
		
	
		
			
				|  |  |  |  |                     text: LocaleKeys.cancel, | 
		
	
		
			
				|  |  |  |  |                     text: LocaleKeys.cancel.tr(), | 
		
	
		
			
				|  |  |  |  |                     icon: AppAssets.cancel, | 
		
	
		
			
				|  |  |  |  |                     onPressed: () { | 
		
	
		
			
				|  |  |  |  |                       Navigator.of(context).pop(); | 
		
	
		
			
				|  |  |  |  |                       authVM!.clearDefaults(); | 
		
	
		
			
				|  |  |  |  |                     }, | 
		
	
		
			
				|  |  |  |  |                     // fontFamily: context.fontFamily, | 
		
	
		
			
				|  |  |  |  |                     backgroundColor: AppColors.secondaryLightRedColor, | 
		
	
		
			
				|  |  |  |  |                     borderColor: AppColors.secondaryLightRedColor, | 
		
	
		
			
				|  |  |  |  |                     textColor: AppColors.primaryRedColor, | 
		
	
	
		
			
				
					|  |  |  | 
 |