|
|
|
@ -44,20 +44,24 @@ class _RegisterNew extends State<RegisterNewStep2> {
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
AppState appState = getIt.get<AppState>();
|
|
|
|
AppState appState = getIt.get<AppState>();
|
|
|
|
return Scaffold(
|
|
|
|
return Scaffold(
|
|
|
|
|
|
|
|
backgroundColor: AppColors.bgScaffoldColor,
|
|
|
|
appBar: CustomAppBar(
|
|
|
|
appBar: CustomAppBar(
|
|
|
|
onBackPressed: () {
|
|
|
|
onBackPressed: () {
|
|
|
|
Navigator.of(context).pop();
|
|
|
|
Navigator.of(context).pop();
|
|
|
|
// authVM!.clearDefaultInputValues();
|
|
|
|
// authVM!.clearDefaultInputValues();
|
|
|
|
|
|
|
|
authVM!.clearEmailInput();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
onLanguageChanged: (lang) {},
|
|
|
|
onLanguageChanged: (lang) {},
|
|
|
|
hideLogoAndLang: true,
|
|
|
|
hideLogoAndLang: true,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
body: SingleChildScrollView(
|
|
|
|
body: SingleChildScrollView(
|
|
|
|
reverse: false,
|
|
|
|
reverse: false,
|
|
|
|
padding: EdgeInsets.only(left: 24.h, right: 24.h, top: 24.h),
|
|
|
|
padding: EdgeInsets.only(left: 24.h, right: 24.h, top: 0.h),
|
|
|
|
child: Column(
|
|
|
|
child: Column(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
children: <Widget>[
|
|
|
|
children: <Widget>[
|
|
|
|
|
|
|
|
LocaleKeys.personalDetailsVerification.tr().toText26(color: AppColors.textColor, weight: FontWeight.w600, letterSpacing: -2),
|
|
|
|
|
|
|
|
SizedBox(height: 24.h),
|
|
|
|
Directionality(
|
|
|
|
Directionality(
|
|
|
|
textDirection: Directionality.of(context),
|
|
|
|
textDirection: Directionality.of(context),
|
|
|
|
child: Container(
|
|
|
|
child: Container(
|
|
|
|
@ -66,18 +70,20 @@ class _RegisterNew extends State<RegisterNewStep2> {
|
|
|
|
child: Column(
|
|
|
|
child: Column(
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
TextInputWidget(
|
|
|
|
TextInputWidget(
|
|
|
|
labelText: authVM!.isUserFromUAE() ? LocaleKeys.fullName.tr() : LocaleKeys.name.tr(),
|
|
|
|
labelText: authVM!.isUserFromUAE() ? LocaleKeys.fullName.tr() : LocaleKeys.name.tr(),
|
|
|
|
hintText: authVM!.isUserFromUAE() ? LocaleKeys.enterNameHere.tr() : ("${appState.getNHICUserData.firstNameEn!.toUpperCase()} ${appState.getNHICUserData.lastNameEn!.toUpperCase()}"),
|
|
|
|
hintText:
|
|
|
|
controller: authVM!.isUserFromUAE() ? authVM!.nameController : null,
|
|
|
|
authVM!.isUserFromUAE() ? LocaleKeys.enterNameHere.tr() : ("${appState.getNHICUserData.firstNameEn!.toUpperCase()} ${appState.getNHICUserData.lastNameEn!.toUpperCase()}"),
|
|
|
|
isEnable: true,
|
|
|
|
controller: authVM!.isUserFromUAE() ? authVM!.nameController : null,
|
|
|
|
prefix: null,
|
|
|
|
isEnable: true,
|
|
|
|
isAllowRadius: false,
|
|
|
|
prefix: null,
|
|
|
|
isBorderAllowed: false,
|
|
|
|
isAllowRadius: false,
|
|
|
|
keyboardType: TextInputType.text,
|
|
|
|
isBorderAllowed: false,
|
|
|
|
isAllowLeadingIcon: true,
|
|
|
|
keyboardType: TextInputType.text,
|
|
|
|
isReadOnly: authVM!.isUserFromUAE() ? false : true,
|
|
|
|
isAllowLeadingIcon: true,
|
|
|
|
leadingIcon: AppAssets.user_circle)
|
|
|
|
isReadOnly: authVM!.isUserFromUAE() ? false : true,
|
|
|
|
.paddingSymmetrical(0.h, 16.h),
|
|
|
|
leadingIcon: AppAssets.user_circle,
|
|
|
|
|
|
|
|
labelColor: AppColors.textColor,
|
|
|
|
|
|
|
|
).paddingSymmetrical(0.h, 16.h),
|
|
|
|
Divider(height: 1, color: AppColors.greyColor),
|
|
|
|
Divider(height: 1, color: AppColors.greyColor),
|
|
|
|
TextInputWidget(
|
|
|
|
TextInputWidget(
|
|
|
|
labelText: LocaleKeys.nationalIdNumber.tr(),
|
|
|
|
labelText: LocaleKeys.nationalIdNumber.tr(),
|
|
|
|
@ -89,6 +95,7 @@ class _RegisterNew extends State<RegisterNewStep2> {
|
|
|
|
isBorderAllowed: false,
|
|
|
|
isBorderAllowed: false,
|
|
|
|
isAllowLeadingIcon: true,
|
|
|
|
isAllowLeadingIcon: true,
|
|
|
|
isReadOnly: true,
|
|
|
|
isReadOnly: true,
|
|
|
|
|
|
|
|
labelColor: AppColors.textColor,
|
|
|
|
leadingIcon: AppAssets.student_card)
|
|
|
|
leadingIcon: AppAssets.student_card)
|
|
|
|
.paddingSymmetrical(0.h, 16.h),
|
|
|
|
.paddingSymmetrical(0.h, 16.h),
|
|
|
|
Divider(height: 1, color: AppColors.greyColor),
|
|
|
|
Divider(height: 1, color: AppColors.greyColor),
|
|
|
|
@ -108,6 +115,7 @@ class _RegisterNew extends State<RegisterNewStep2> {
|
|
|
|
isBorderAllowed: false,
|
|
|
|
isBorderAllowed: false,
|
|
|
|
hasSelectionCustomIcon: true,
|
|
|
|
hasSelectionCustomIcon: true,
|
|
|
|
isAllowRadius: false,
|
|
|
|
isAllowRadius: false,
|
|
|
|
|
|
|
|
labelColor: AppColors.textColor,
|
|
|
|
padding: const EdgeInsets.only(top: 8, bottom: 8, left: 0, right: 0),
|
|
|
|
padding: const EdgeInsets.only(top: 8, bottom: 8, left: 0, right: 0),
|
|
|
|
selectionCustomIcon: AppAssets.arrow_down,
|
|
|
|
selectionCustomIcon: AppAssets.arrow_down,
|
|
|
|
leadingIcon: AppAssets.user_full,
|
|
|
|
leadingIcon: AppAssets.user_full,
|
|
|
|
@ -124,6 +132,7 @@ class _RegisterNew extends State<RegisterNewStep2> {
|
|
|
|
isAllowLeadingIcon: true,
|
|
|
|
isAllowLeadingIcon: true,
|
|
|
|
isReadOnly: authVM!.isUserFromUAE() ? false : true,
|
|
|
|
isReadOnly: authVM!.isUserFromUAE() ? false : true,
|
|
|
|
leadingIcon: AppAssets.user_full,
|
|
|
|
leadingIcon: AppAssets.user_full,
|
|
|
|
|
|
|
|
labelColor: AppColors.textColor,
|
|
|
|
onChange: (value) {})
|
|
|
|
onChange: (value) {})
|
|
|
|
.paddingSymmetrical(0.h, 16.h),
|
|
|
|
.paddingSymmetrical(0.h, 16.h),
|
|
|
|
Divider(height: 1, color: AppColors.greyColor),
|
|
|
|
Divider(height: 1, color: AppColors.greyColor),
|
|
|
|
@ -143,6 +152,7 @@ class _RegisterNew extends State<RegisterNewStep2> {
|
|
|
|
isBorderAllowed: false,
|
|
|
|
isBorderAllowed: false,
|
|
|
|
hasSelectionCustomIcon: true,
|
|
|
|
hasSelectionCustomIcon: true,
|
|
|
|
isAllowRadius: false,
|
|
|
|
isAllowRadius: false,
|
|
|
|
|
|
|
|
labelColor: AppColors.textColor,
|
|
|
|
padding: const EdgeInsets.only(top: 8, bottom: 8, left: 0, right: 0),
|
|
|
|
padding: const EdgeInsets.only(top: 8, bottom: 8, left: 0, right: 0),
|
|
|
|
selectionCustomIcon: AppAssets.arrow_down,
|
|
|
|
selectionCustomIcon: AppAssets.arrow_down,
|
|
|
|
leadingIcon: AppAssets.smart_phone,
|
|
|
|
leadingIcon: AppAssets.smart_phone,
|
|
|
|
@ -160,6 +170,7 @@ class _RegisterNew extends State<RegisterNewStep2> {
|
|
|
|
isBorderAllowed: false,
|
|
|
|
isBorderAllowed: false,
|
|
|
|
isAllowLeadingIcon: true,
|
|
|
|
isAllowLeadingIcon: true,
|
|
|
|
isReadOnly: true,
|
|
|
|
isReadOnly: true,
|
|
|
|
|
|
|
|
labelColor: AppColors.textColor,
|
|
|
|
leadingIcon: AppAssets.smart_phone,
|
|
|
|
leadingIcon: AppAssets.smart_phone,
|
|
|
|
onChange: (value) {})
|
|
|
|
onChange: (value) {})
|
|
|
|
.paddingSymmetrical(0.h, 16.h),
|
|
|
|
.paddingSymmetrical(0.h, 16.h),
|
|
|
|
@ -190,6 +201,7 @@ class _RegisterNew extends State<RegisterNewStep2> {
|
|
|
|
onChange: authVM.onUAEUserCountrySelection,
|
|
|
|
onChange: authVM.onUAEUserCountrySelection,
|
|
|
|
isBorderAllowed: false,
|
|
|
|
isBorderAllowed: false,
|
|
|
|
hasSelectionCustomIcon: true,
|
|
|
|
hasSelectionCustomIcon: true,
|
|
|
|
|
|
|
|
labelColor: AppColors.textColor,
|
|
|
|
isAllowRadius: false,
|
|
|
|
isAllowRadius: false,
|
|
|
|
padding: const EdgeInsets.only(top: 8, bottom: 8, left: 0, right: 0),
|
|
|
|
padding: const EdgeInsets.only(top: 8, bottom: 8, left: 0, right: 0),
|
|
|
|
selectionCustomIcon: AppAssets.arrow_down,
|
|
|
|
selectionCustomIcon: AppAssets.arrow_down,
|
|
|
|
@ -208,6 +220,7 @@ class _RegisterNew extends State<RegisterNewStep2> {
|
|
|
|
isBorderAllowed: false,
|
|
|
|
isBorderAllowed: false,
|
|
|
|
isAllowLeadingIcon: true,
|
|
|
|
isAllowLeadingIcon: true,
|
|
|
|
isReadOnly: true,
|
|
|
|
isReadOnly: true,
|
|
|
|
|
|
|
|
labelColor: AppColors.textColor,
|
|
|
|
leadingIcon: AppAssets.globe,
|
|
|
|
leadingIcon: AppAssets.globe,
|
|
|
|
onChange: (value) {})
|
|
|
|
onChange: (value) {})
|
|
|
|
.paddingSymmetrical(0.h, 16.h),
|
|
|
|
.paddingSymmetrical(0.h, 16.h),
|
|
|
|
@ -224,6 +237,7 @@ class _RegisterNew extends State<RegisterNewStep2> {
|
|
|
|
isAllowRadius: false,
|
|
|
|
isAllowRadius: false,
|
|
|
|
isBorderAllowed: false,
|
|
|
|
isBorderAllowed: false,
|
|
|
|
isAllowLeadingIcon: true,
|
|
|
|
isAllowLeadingIcon: true,
|
|
|
|
|
|
|
|
labelColor: AppColors.textColor,
|
|
|
|
isReadOnly: true,
|
|
|
|
isReadOnly: true,
|
|
|
|
leadingIcon: AppAssets.call)
|
|
|
|
leadingIcon: AppAssets.call)
|
|
|
|
.paddingSymmetrical(0.h, 16.h),
|
|
|
|
.paddingSymmetrical(0.h, 16.h),
|
|
|
|
@ -240,6 +254,7 @@ class _RegisterNew extends State<RegisterNewStep2> {
|
|
|
|
isBorderAllowed: false,
|
|
|
|
isBorderAllowed: false,
|
|
|
|
isAllowLeadingIcon: true,
|
|
|
|
isAllowLeadingIcon: true,
|
|
|
|
isReadOnly: true,
|
|
|
|
isReadOnly: true,
|
|
|
|
|
|
|
|
labelColor: AppColors.textColor,
|
|
|
|
leadingIcon: AppAssets.birthday_cake,
|
|
|
|
leadingIcon: AppAssets.birthday_cake,
|
|
|
|
selectionType: null,
|
|
|
|
selectionType: null,
|
|
|
|
).paddingSymmetrical(0.h, 16.h),
|
|
|
|
).paddingSymmetrical(0.h, 16.h),
|
|
|
|
@ -269,12 +284,12 @@ class _RegisterNew extends State<RegisterNewStep2> {
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Expanded(
|
|
|
|
Expanded(
|
|
|
|
child: CustomButton(
|
|
|
|
child: CustomButton(
|
|
|
|
backgroundColor: AppColors.lightGreenColor,
|
|
|
|
backgroundColor: AppColors.primaryRedColor,
|
|
|
|
borderColor: AppColors.lightGreenColor,
|
|
|
|
borderColor: AppColors.primaryRedColor,
|
|
|
|
textColor: AppColors.textGreenColor,
|
|
|
|
textColor: AppColors.whiteColor,
|
|
|
|
text: LocaleKeys.confirm.tr(),
|
|
|
|
text: LocaleKeys.confirm.tr(),
|
|
|
|
icon: AppAssets.confirm,
|
|
|
|
icon: AppAssets.confirm,
|
|
|
|
iconColor: AppColors.textGreenColor,
|
|
|
|
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(
|
|
|
|
|