Watch
1
0
Fork
You've already forked arc
0
forked from hesabix/arc
arc/hesabixUI/hesabix_ui/lib/models/person_social_platforms.dart
2026-05-07 22:21:45 +03:30

31 lines
819 B
Dart
Executable file

/// کلیدهای `platform_key` هم‌نام با API
const List<String> kPersonSocialPlatformKeys = [
'telegram',
'bale',
'rubika',
'eitaa',
'whatsapp',
'instagram',
'linkedin',
'twitter',
'other',
];
const Map<String, String> kPersonSocialPlatformLabelsFa = {
'telegram': 'تلگرام',
'bale': 'بله',
'rubika': 'روبیکا',
'eitaa': 'ایتا',
'whatsapp': 'واتساپ',
'instagram': 'اینستاگرام',
'linkedin': 'لینکدین',
'twitter': 'توییتر / X',
'other': 'سایر',
};
String personSocialPlatformLabelFa(String platformKey, {String? customLabel}) {
if (platformKey == 'other' && customLabel != null && customLabel.trim().isNotEmpty) {
return customLabel.trim();
}
return kPersonSocialPlatformLabelsFa[platformKey] ?? platformKey;
}