Updates to share link message

master^2^2
haroon amjad 4 hours ago
parent f57ae71704
commit d5ee0faa1e

@ -606,7 +606,7 @@
"confirmRevokeMazayaAccess": "هل أنت متأكد أنك تريد إلغاء صلاحية مزايا لـ \"{}\"؟",
"yes": "نعم",
"no": "لا",
"mazayaInviteInstructions": "يرجى تحميل تطبيق مهمم من الرابط أعلاه واستخدام بيانات الاعتماد التالية لتسجيل الدخول",
"mazayaInviteInstructions": "يُرجى تحميل تطبيق مهمم من الرابط أعلاه، واستخدام رقم هويتك الوطنية وتاريخ ميلادك لتسجيل الدخول.",
"cameraPermissionRequiredToScan": "يرجى منح صلاحية الكاميرا لمسح رمز الاستجابة السريعة",
"cameraPermissionPermanentlyDenied": "يرجى تفعيل صلاحية الكاميرا من إعدادات التطبيق > الصلاحيات",
"openSettings": "فتح الإعدادات",

@ -553,7 +553,7 @@
"confirmRevokeMazayaAccess": "Are you sure you want to revoke Mazaya access to \"{}\"?",
"yes": "Yes",
"no": "No",
"mazayaInviteInstructions": "Please download the MoheM app from the above link and use the following credentials to login",
"mazayaInviteInstructions": "Please download the MoheM app from the above link and use your National ID & Date of birth to login.",
"cameraPermissionRequiredToScan": "Please grant camera permission to scan the QR code",
"cameraPermissionPermanentlyDenied": "Please allow camera permission from the app settings > Permissions",
"openSettings": "Open Settings",

@ -622,7 +622,7 @@ class CodegenLoader extends AssetLoader{
"confirmRevokeMazayaAccess": "هل أنت متأكد أنك تريد إلغاء صلاحية مزايا لـ \"{}\"؟",
"yes": "نعم",
"no": "لا",
"mazayaInviteInstructions": "يرجى تحميل تطبيق مهمم من الرابط أعلاه واستخدام بيانات الاعتماد التالية لتسجيل الدخول",
"mazayaInviteInstructions": "يُرجى تحميل تطبيق مهمم من الرابط أعلاه، واستخدام رقم هويتك الوطنية وتاريخ ميلادك لتسجيل الدخول.",
"cameraPermissionRequiredToScan": "يرجى منح صلاحية الكاميرا لمسح رمز الاستجابة السريعة",
"cameraPermissionPermanentlyDenied": "يرجى تفعيل صلاحية الكاميرا من إعدادات التطبيق > الصلاحيات",
"openSettings": "فتح الإعدادات",
@ -1458,7 +1458,7 @@ static const Map<String,dynamic> _en_US = {
"confirmRevokeMazayaAccess": "Are you sure you want to revoke Mazaya access to \"{}\"?",
"yes": "Yes",
"no": "No",
"mazayaInviteInstructions": "Please download the MoheM app from the above link and use the following credentials to login",
"mazayaInviteInstructions": "Please download the MoheM app from the above link and use your National ID & Date of birth to login.",
"cameraPermissionRequiredToScan": "Please grant camera permission to scan the QR code",
"cameraPermissionPermanentlyDenied": "Please allow camera permission from the app settings > Permissions",
"openSettings": "Open Settings",

@ -2119,24 +2119,24 @@ class WalaPlusRetailerCard extends StatelessWidget {
),
),
),
if (item.isExclusive == true)
PositionedDirectional(
bottom: 7,
start: 8,
child: Container(
padding: const EdgeInsets.symmetric(
horizontal: 7,
vertical: 4,
),
decoration: BoxDecoration(
color: const Color(0xFF143F36),
borderRadius: BorderRadius.circular(6),
),
child: LocaleKeys.mazayaExclusive.tr().toText10(
color: const Color(0xFFF1EBDD),
),
),
),
// if (item.isExclusive == true)
// PositionedDirectional(
// bottom: 7,
// start: 8,
// child: Container(
// padding: const EdgeInsets.symmetric(
// horizontal: 7,
// vertical: 4,
// ),
// decoration: BoxDecoration(
// color: const Color(0xFF143F36),
// borderRadius: BorderRadius.circular(6),
// ),
// child: LocaleKeys.mazayaExclusive.tr().toText10(
// color: const Color(0xFFF1EBDD),
// ),
// ),
// ),
],
),
),

@ -333,7 +333,7 @@ class _DependentDetailsScreenState extends State<DependentDetailsScreen> {
(nationalId == null || nationalId.isEmpty)
? LocaleKeys.nationalIdOrIqamaFallback.tr()
: "${LocaleKeys.nationalId.tr()}: ${nationalId.replaceAll('-', '')}";
return "$linkToShare\n\n${LocaleKeys.mazayaInviteInstructions.tr()}\n\n$nationalIdLine\n${LocaleKeys.dateOfBirth.tr()}: ${_formatDobForShare()}";
return "$linkToShare\n\n${LocaleKeys.mazayaInviteInstructions.tr()}";
}
// Shares the invite text together with the language-appropriate steps PDF from assets.

@ -470,7 +470,7 @@ class MazayaAccessResultScreen extends StatelessWidget {
// carry identical content, so this is the single source of truth for it.
String _buildMazayaInviteMessage(String linkToShare, String nationalId, String dateOfBirth) {
String nationalIdLine = nationalId.trim().isEmpty ? LocaleKeys.nationalIdOrIqamaFallback.tr() : "${LocaleKeys.nationalId.tr()}: ${nationalId.replaceAll('-', '')}";
return "$linkToShare\n\n${LocaleKeys.mazayaInviteInstructions.tr()}\n\n$nationalIdLine\n${LocaleKeys.dateOfBirth.tr()}: ${_formatDob(dateOfBirth)}";
return "$linkToShare\n\n${LocaleKeys.mazayaInviteInstructions.tr()}";
}
// Text-only share (the invite message + link). Kept separate from the guide share below

Loading…
Cancel
Save