|
|
|
|
@ -135,15 +135,15 @@ class MazayaAccessResultScreen extends StatelessWidget {
|
|
|
|
|
effectiveNationalId = routeArgs['nationalId'] ?? nationalId;
|
|
|
|
|
effectiveDateOfBirth = routeArgs['dateOfBirth'] ?? dateOfBirth;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (effectiveName.trim().isEmpty) {
|
|
|
|
|
String fallback = AppState().dependentName ?? "";
|
|
|
|
|
if (fallback.isNotEmpty) {
|
|
|
|
|
effectiveName = fallback;
|
|
|
|
|
} else {
|
|
|
|
|
effectiveName = isAr ? "التابع" : "Dependent";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
effectiveName = isAr ? "التابع" : "Dependent";
|
|
|
|
|
// if (effectiveName.trim().isEmpty) {
|
|
|
|
|
// String fallback = AppState().dependentName ?? "";
|
|
|
|
|
// if (fallback.isNotEmpty) {
|
|
|
|
|
// effectiveName = fallback;
|
|
|
|
|
// } else {
|
|
|
|
|
// effectiveName = isAr ? "التابع" : "Dependent";
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
String linkToShare = effectiveUrl ?? getDownloadLink();
|
|
|
|
|
String initials = effectiveInitials ?? _getInitials(effectiveName);
|
|
|
|
|
@ -407,7 +407,7 @@ class MazayaAccessResultScreen extends StatelessWidget {
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
name.toText14(isBold: true, maxlines: 1, color: const Color(0xFF1E293B)),
|
|
|
|
|
// name.toText14(isBold: true, maxlines: 1, color: const Color(0xFF1E293B)),
|
|
|
|
|
const SizedBox(height: 2),
|
|
|
|
|
LocaleKeys.dependentAccessBlocked.tr().toText12(isBold: true, color: const Color(0xFFED1C24)),
|
|
|
|
|
],
|
|
|
|
|
|