update to relative import

This commit is contained in:
Tran Anh Tuan
2025-10-22 17:52:28 +07:00
parent fe622d8af9
commit cfebf74515
18 changed files with 168 additions and 303 deletions

View File

@@ -79,8 +79,8 @@ class NotificationServices {
Future<void> _showNotification(RemoteMessage message) async {
try {
// Early validation of notification data
final title = message.data['title'] as String?;
final body = message.data['body'] as String?;
final title = message.notification?.title ?? "Title" as String?;
final body = message.notification?.body ?? "Body" as String?;
final type = message.data['type'] as String? ?? 'normal';
if (title == null || body == null) {