Updates to share link message

master
haroon amjad 11 hours ago
parent f57ae71704
commit d5ee0faa1e

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

@ -553,7 +553,7 @@
"confirmRevokeMazayaAccess": "Are you sure you want to revoke Mazaya access to \"{}\"?", "confirmRevokeMazayaAccess": "Are you sure you want to revoke Mazaya access to \"{}\"?",
"yes": "Yes", "yes": "Yes",
"no": "No", "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", "cameraPermissionRequiredToScan": "Please grant camera permission to scan the QR code",
"cameraPermissionPermanentlyDenied": "Please allow camera permission from the app settings > Permissions", "cameraPermissionPermanentlyDenied": "Please allow camera permission from the app settings > Permissions",
"openSettings": "Open Settings", "openSettings": "Open Settings",

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

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

@ -333,7 +333,7 @@ class _DependentDetailsScreenState extends State<DependentDetailsScreen> {
(nationalId == null || nationalId.isEmpty) (nationalId == null || nationalId.isEmpty)
? LocaleKeys.nationalIdOrIqamaFallback.tr() ? LocaleKeys.nationalIdOrIqamaFallback.tr()
: "${LocaleKeys.nationalId.tr()}: ${nationalId.replaceAll('-', '')}"; : "${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. // 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. // carry identical content, so this is the single source of truth for it.
String _buildMazayaInviteMessage(String linkToShare, String nationalId, String dateOfBirth) { String _buildMazayaInviteMessage(String linkToShare, String nationalId, String dateOfBirth) {
String nationalIdLine = nationalId.trim().isEmpty ? LocaleKeys.nationalIdOrIqamaFallback.tr() : "${LocaleKeys.nationalId.tr()}: ${nationalId.replaceAll('-', '')}"; 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 // Text-only share (the invite message + link). Kept separate from the guide share below

Loading…
Cancel
Save