|
|
|
@ -53,6 +53,7 @@ class _RegisterNew extends State<RegisterNewStep2> {
|
|
|
|
|
|
|
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return Scaffold(
|
|
|
|
return Scaffold(
|
|
|
|
|
|
|
|
|
|
|
|
appBar: CustomAppBar(onBackPressed: () {}, onLanguageChanged: (lang) {}, hideLogoAndLang: true,),
|
|
|
|
appBar: CustomAppBar(onBackPressed: () {}, onLanguageChanged: (lang) {}, hideLogoAndLang: true,),
|
|
|
|
body: SingleChildScrollView(
|
|
|
|
body: SingleChildScrollView(
|
|
|
|
reverse: false,
|
|
|
|
reverse: false,
|
|
|
|
@ -78,8 +79,8 @@ class _RegisterNew extends State<RegisterNewStep2> {
|
|
|
|
keyboardType: TextInputType.text,
|
|
|
|
keyboardType: TextInputType.text,
|
|
|
|
isAllowLeadingIcon: true,
|
|
|
|
isAllowLeadingIcon: true,
|
|
|
|
isReadOnly: isFromDubai ? false : true,
|
|
|
|
isReadOnly: isFromDubai ? false : true,
|
|
|
|
leadingIcon: AppAssets.user_circle),
|
|
|
|
leadingIcon: AppAssets.user_circle).paddingSymmetrical(0.h,16.h),
|
|
|
|
Divider(height: 1),
|
|
|
|
Divider(height: 1, color: AppColors.greyColor,),
|
|
|
|
TextInputWidget(
|
|
|
|
TextInputWidget(
|
|
|
|
labelText: LocaleKeys.nationalIdNumber.tr(),
|
|
|
|
labelText: LocaleKeys.nationalIdNumber.tr(),
|
|
|
|
hintText: isFromDubai ? "widget.payload.nationalID!" : (widget.nHICData!.idNumber ?? ""),
|
|
|
|
hintText: isFromDubai ? "widget.payload.nationalID!" : (widget.nHICData!.idNumber ?? ""),
|
|
|
|
@ -90,8 +91,8 @@ class _RegisterNew extends State<RegisterNewStep2> {
|
|
|
|
isBorderAllowed: false,
|
|
|
|
isBorderAllowed: false,
|
|
|
|
isAllowLeadingIcon: true,
|
|
|
|
isAllowLeadingIcon: true,
|
|
|
|
isReadOnly: true,
|
|
|
|
isReadOnly: true,
|
|
|
|
leadingIcon: AppAssets.student_card),
|
|
|
|
leadingIcon: AppAssets.student_card).paddingSymmetrical(0.h,16.h),
|
|
|
|
Divider(height: 1),
|
|
|
|
Divider(height: 1, color: AppColors.greyColor,),
|
|
|
|
isFromDubai
|
|
|
|
isFromDubai
|
|
|
|
? DropdownWidget(
|
|
|
|
? DropdownWidget(
|
|
|
|
labelText: LocaleKeys.gender.tr(),
|
|
|
|
labelText: LocaleKeys.gender.tr(),
|
|
|
|
@ -108,7 +109,7 @@ class _RegisterNew extends State<RegisterNewStep2> {
|
|
|
|
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,
|
|
|
|
// leadingIcon: 'assets/images/svg/user-full.svg',
|
|
|
|
leadingIcon: AppAssets.user_full,
|
|
|
|
).withVerticalPadding(8)
|
|
|
|
).withVerticalPadding(8)
|
|
|
|
: TextInputWidget(
|
|
|
|
: TextInputWidget(
|
|
|
|
labelText: LocaleKeys.gender.tr(),
|
|
|
|
labelText: LocaleKeys.gender.tr(),
|
|
|
|
@ -121,8 +122,9 @@ class _RegisterNew extends State<RegisterNewStep2> {
|
|
|
|
isAllowLeadingIcon: true,
|
|
|
|
isAllowLeadingIcon: true,
|
|
|
|
isReadOnly: isFromDubai ? false : true,
|
|
|
|
isReadOnly: isFromDubai ? false : true,
|
|
|
|
leadingIcon: AppAssets.user_full,
|
|
|
|
leadingIcon: AppAssets.user_full,
|
|
|
|
onChange: (value) {}),
|
|
|
|
|
|
|
|
Divider(height: 1),
|
|
|
|
onChange: (value) {}).paddingSymmetrical(0.h,16.h),
|
|
|
|
|
|
|
|
Divider(height: 1, color: AppColors.greyColor,),
|
|
|
|
isFromDubai
|
|
|
|
isFromDubai
|
|
|
|
? DropdownWidget(
|
|
|
|
? DropdownWidget(
|
|
|
|
labelText: LocaleKeys.maritalStatus.tr(),
|
|
|
|
labelText: LocaleKeys.maritalStatus.tr(),
|
|
|
|
@ -136,7 +138,7 @@ class _RegisterNew extends State<RegisterNewStep2> {
|
|
|
|
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,
|
|
|
|
// leadingIcon: 'assets/images/svg/smart-phone.svg',
|
|
|
|
leadingIcon: AppAssets.smart_phone,
|
|
|
|
).withVerticalPadding(8)
|
|
|
|
).withVerticalPadding(8)
|
|
|
|
: TextInputWidget(
|
|
|
|
: TextInputWidget(
|
|
|
|
labelText: LocaleKeys.maritalStatus.tr(),
|
|
|
|
labelText: LocaleKeys.maritalStatus.tr(),
|
|
|
|
@ -150,8 +152,8 @@ class _RegisterNew extends State<RegisterNewStep2> {
|
|
|
|
isAllowLeadingIcon: true,
|
|
|
|
isAllowLeadingIcon: true,
|
|
|
|
isReadOnly: true,
|
|
|
|
isReadOnly: true,
|
|
|
|
leadingIcon: AppAssets.smart_phone,
|
|
|
|
leadingIcon: AppAssets.smart_phone,
|
|
|
|
onChange: (value) {}),
|
|
|
|
onChange: (value) {}).paddingSymmetrical(0.h,16.h),
|
|
|
|
Divider(height: 1),
|
|
|
|
Divider(height: 1, color: AppColors.greyColor,),
|
|
|
|
isFromDubai
|
|
|
|
isFromDubai
|
|
|
|
? DropdownWidget(
|
|
|
|
? DropdownWidget(
|
|
|
|
labelText: LocaleKeys.country.tr(),
|
|
|
|
labelText: LocaleKeys.country.tr(),
|
|
|
|
@ -165,7 +167,7 @@ class _RegisterNew extends State<RegisterNewStep2> {
|
|
|
|
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,
|
|
|
|
// leadingIcon: 'assets/images/svg/globe.svg',
|
|
|
|
leadingIcon: AppAssets.globe,
|
|
|
|
).withVerticalPadding(8)
|
|
|
|
).withVerticalPadding(8)
|
|
|
|
: TextInputWidget(
|
|
|
|
: TextInputWidget(
|
|
|
|
labelText: LocaleKeys.nationality.tr(),
|
|
|
|
labelText: LocaleKeys.nationality.tr(),
|
|
|
|
@ -179,8 +181,8 @@ class _RegisterNew extends State<RegisterNewStep2> {
|
|
|
|
isAllowLeadingIcon: true,
|
|
|
|
isAllowLeadingIcon: true,
|
|
|
|
isReadOnly: true,
|
|
|
|
isReadOnly: true,
|
|
|
|
leadingIcon: AppAssets.globe,
|
|
|
|
leadingIcon: AppAssets.globe,
|
|
|
|
onChange: (value) {}),
|
|
|
|
onChange: (value) {}).paddingSymmetrical(0.h,16.h),
|
|
|
|
Divider(height: 1),
|
|
|
|
Divider(height: 1, color: AppColors.greyColor,),
|
|
|
|
TextInputWidget(
|
|
|
|
TextInputWidget(
|
|
|
|
labelText: LocaleKeys.mobileNumber.tr(),
|
|
|
|
labelText: LocaleKeys.mobileNumber.tr(),
|
|
|
|
hintText: ("widget.payload.mobileNo" ?? ""),
|
|
|
|
hintText: ("widget.payload.mobileNo" ?? ""),
|
|
|
|
@ -192,8 +194,8 @@ class _RegisterNew extends State<RegisterNewStep2> {
|
|
|
|
isAllowLeadingIcon: true,
|
|
|
|
isAllowLeadingIcon: true,
|
|
|
|
isReadOnly: true,
|
|
|
|
isReadOnly: true,
|
|
|
|
leadingIcon: AppAssets.call,
|
|
|
|
leadingIcon: AppAssets.call,
|
|
|
|
onChange: (value) {}),
|
|
|
|
onChange: (value) {}).paddingSymmetrical(0.h,16.h),
|
|
|
|
Divider(height: 1),
|
|
|
|
Divider(height: 1, color: AppColors.greyColor,),
|
|
|
|
TextInputWidget(
|
|
|
|
TextInputWidget(
|
|
|
|
labelText: LocaleKeys.dob.tr(),
|
|
|
|
labelText: LocaleKeys.dob.tr(),
|
|
|
|
hintText: isFromDubai ? "widget.payload.dob!" : (widget.nHICData!.dateOfBirth ?? ""),
|
|
|
|
hintText: isFromDubai ? "widget.payload.dob!" : (widget.nHICData!.dateOfBirth ?? ""),
|
|
|
|
@ -203,11 +205,11 @@ class _RegisterNew extends State<RegisterNewStep2> {
|
|
|
|
isBorderAllowed: false,
|
|
|
|
isBorderAllowed: false,
|
|
|
|
isAllowLeadingIcon: true,
|
|
|
|
isAllowLeadingIcon: true,
|
|
|
|
isReadOnly: true,
|
|
|
|
isReadOnly: true,
|
|
|
|
// selectionType: SelectionType.calendar,
|
|
|
|
// : SelectionType.calendar,
|
|
|
|
// selectedValue: widget.payload.dob != null ? Utils.formatDateToDisplay(widget.payload.dob.toString()) : null,
|
|
|
|
// selectedValue: widget.payload.dob != null ? Utils.formatDateToDisplay(widget.payload.dob.toString()) : null,
|
|
|
|
// selectionCustomIcon: AppAssets.calendar,
|
|
|
|
// selectionCustomIcon: AppAssets.calendar,
|
|
|
|
// leadingIcon: AppAssets.birthday_cake,
|
|
|
|
leadingIcon: AppAssets.birthday_cake,
|
|
|
|
onChange: (value) {}),
|
|
|
|
onChange: (value) {}).paddingSymmetrical(0.h,16.h),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|