|
|
|
@ -43,9 +43,9 @@ class _RegisterNew extends State<RegisterNewStep2> {
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
AppState appState = getIt.get<AppState>();
|
|
|
|
AppState appState = getIt.get<AppState>();
|
|
|
|
|
|
|
|
var name = authVM!.isUserFromUAE()
|
|
|
|
// TODO: to be checked with yakeen data
|
|
|
|
? ""
|
|
|
|
var name = authVM!.isUserFromUAE() ? "" : appState.getLanguageCode() == "en"
|
|
|
|
: appState.getLanguageCode() == "en"
|
|
|
|
? ("${appState.getNHICUserData.firstNameEn!.toUpperCase()} ${appState.getNHICUserData.lastNameEn!.toUpperCase()}")
|
|
|
|
? ("${appState.getNHICUserData.firstNameEn!.toUpperCase()} ${appState.getNHICUserData.lastNameEn!.toUpperCase()}")
|
|
|
|
: ("${appState.getNHICUserData.firstNameAr!.toUpperCase()} ${appState.getNHICUserData.lastNameAr!.toUpperCase()}");
|
|
|
|
: ("${appState.getNHICUserData.firstNameAr!.toUpperCase()} ${appState.getNHICUserData.lastNameAr!.toUpperCase()}");
|
|
|
|
return Scaffold(
|
|
|
|
return Scaffold(
|
|
|
|
@ -59,7 +59,15 @@ class _RegisterNew extends State<RegisterNewStep2> {
|
|
|
|
onLanguageChanged: (lang) {},
|
|
|
|
onLanguageChanged: (lang) {},
|
|
|
|
hideLogoAndLang: true,
|
|
|
|
hideLogoAndLang: true,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
body: SingleChildScrollView(
|
|
|
|
body: GestureDetector(
|
|
|
|
|
|
|
|
onTap: () {
|
|
|
|
|
|
|
|
FocusScope.of(context).unfocus();
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
behavior: HitTestBehavior.translucent, // Ensures taps on empty space are detected
|
|
|
|
|
|
|
|
child: SizedBox(
|
|
|
|
|
|
|
|
width: double.infinity,
|
|
|
|
|
|
|
|
height: double.infinity,
|
|
|
|
|
|
|
|
child: SingleChildScrollView(
|
|
|
|
reverse: false,
|
|
|
|
reverse: false,
|
|
|
|
padding: EdgeInsets.only(left: 24.h, right: 24.h, top: 0.h),
|
|
|
|
padding: EdgeInsets.only(left: 24.h, right: 24.h, top: 0.h),
|
|
|
|
child: Column(
|
|
|
|
child: Column(
|
|
|
|
@ -67,9 +75,7 @@ class _RegisterNew extends State<RegisterNewStep2> {
|
|
|
|
children: <Widget>[
|
|
|
|
children: <Widget>[
|
|
|
|
LocaleKeys.personalDetailsVerification.tr().toText26(color: AppColors.textColor, weight: FontWeight.w600, letterSpacing: -2),
|
|
|
|
LocaleKeys.personalDetailsVerification.tr().toText26(color: AppColors.textColor, weight: FontWeight.w600, letterSpacing: -2),
|
|
|
|
SizedBox(height: 24.h),
|
|
|
|
SizedBox(height: 24.h),
|
|
|
|
Directionality(
|
|
|
|
Container(
|
|
|
|
textDirection: Directionality.of(context),
|
|
|
|
|
|
|
|
child: Container(
|
|
|
|
|
|
|
|
decoration: BoxDecoration(color: Colors.white, borderRadius: BorderRadius.circular(24)),
|
|
|
|
decoration: BoxDecoration(color: Colors.white, borderRadius: BorderRadius.circular(24)),
|
|
|
|
padding: EdgeInsets.only(left: 16.h, right: 16.h),
|
|
|
|
padding: EdgeInsets.only(left: 16.h, right: 16.h),
|
|
|
|
child: Column(
|
|
|
|
child: Column(
|
|
|
|
@ -83,6 +89,10 @@ class _RegisterNew extends State<RegisterNewStep2> {
|
|
|
|
isAllowRadius: false,
|
|
|
|
isAllowRadius: false,
|
|
|
|
isBorderAllowed: false,
|
|
|
|
isBorderAllowed: false,
|
|
|
|
keyboardType: TextInputType.text,
|
|
|
|
keyboardType: TextInputType.text,
|
|
|
|
|
|
|
|
// textInputAction: TextInputAction.done,
|
|
|
|
|
|
|
|
onSubmitted: (value) {
|
|
|
|
|
|
|
|
FocusScope.of(context).unfocus();
|
|
|
|
|
|
|
|
},
|
|
|
|
isAllowLeadingIcon: true,
|
|
|
|
isAllowLeadingIcon: true,
|
|
|
|
isReadOnly: authVM!.isUserFromUAE() ? false : true,
|
|
|
|
isReadOnly: authVM!.isUserFromUAE() ? false : true,
|
|
|
|
leadingIcon: AppAssets.user_circle,
|
|
|
|
leadingIcon: AppAssets.user_circle,
|
|
|
|
@ -265,7 +275,6 @@ class _RegisterNew extends State<RegisterNewStep2> {
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
SizedBox(height: 50.h),
|
|
|
|
SizedBox(height: 50.h),
|
|
|
|
Row(
|
|
|
|
Row(
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
@ -317,6 +326,8 @@ class _RegisterNew extends State<RegisterNewStep2> {
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|