Update: 2026-06-11 13:47:39
This commit is contained in:
@@ -183,18 +183,18 @@ class SplashScreenController extends GetxController
|
||||
final List<String> msgs = passengerMessages ?? const [];
|
||||
if (msgs.isEmpty) {
|
||||
controller.scheduleNotificationsForSevenDays(
|
||||
'Intaleq', 'مرحباً بك! تابع رحلاتك بأمان مع انطلق.', "tone1");
|
||||
'Siro', 'مرحباً بك! تابع رحلاتك بأمان مع سيرو.', "tone1");
|
||||
} else {
|
||||
final rnd = Random();
|
||||
final raw = msgs[rnd.nextInt(msgs.length)];
|
||||
final parts = raw.split(':');
|
||||
final title = parts.isNotEmpty ? parts.first.trim() : 'Intaleq';
|
||||
final title = parts.isNotEmpty ? parts.first.trim() : 'Siro';
|
||||
final body = parts.length > 1
|
||||
? parts.sublist(1).join(':').trim()
|
||||
: 'مرحباً بك! تابع رحلاتك بأمان مع انطلق.';
|
||||
: 'مرحباً بك! تابع رحلاتك بأمان مع سيرو.';
|
||||
controller.scheduleNotificationsForSevenDays(
|
||||
title.isEmpty ? 'Intaleq' : title,
|
||||
body.isEmpty ? 'مرحباً بك! تابع رحلاتك بأمان مع انطلق.' : body,
|
||||
title.isEmpty ? 'Siro' : title,
|
||||
body.isEmpty ? 'مرحباً بك! تابع رحلاتك بأمان مع سيرو.' : body,
|
||||
"tone1");
|
||||
}
|
||||
} catch (e, st) {
|
||||
|
||||
Reference in New Issue
Block a user