From 9ff4c32c966e6d962544bd49fa8a2aa1b5d1bc4e Mon Sep 17 00:00:00 2001 From: Afri <220195275+l5yth@users.noreply.github.com> Date: Mon, 5 Oct 2026 13:32:47 +0200 Subject: [PATCH] app: bump flutter_local_notifications to 22.3.1 (#945) --- app/lib/main.dart | 10 +++++----- app/pubspec.lock | 32 ++++++++++++++++++++------------ app/pubspec.yaml | 2 +- 3 files changed, 26 insertions(+), 18 deletions(-) diff --git a/app/lib/main.dart b/app/lib/main.dart index 38b3bb5b..49cc610b 100644 --- a/app/lib/main.dart +++ b/app/lib/main.dart @@ -130,7 +130,7 @@ class LocalNotificationClient implements NotificationClient { final androidInit = buildAndroidInitializationSettings(); final iosInit = buildDarwinInitializationSettings(); final settings = InitializationSettings(android: androidInit, iOS: iosInit); - await _plugin.initialize(settings); + await _plugin.initialize(settings: settings); final android = _plugin.resolvePlatformSpecificImplementation< AndroidFlutterLocalNotificationsPlugin>(); @@ -234,10 +234,10 @@ class LocalNotificationClient implements NotificationClient { ? message.text.trim() : 'New message on $channel'; await _plugin.show( - message.id.hashCode.abs(), - title, - body, - _notificationDetails(), + id: message.id.hashCode.abs(), + title: title, + body: body, + notificationDetails: _notificationDetails(), payload: domain, ); } diff --git a/app/pubspec.lock b/app/pubspec.lock index e50b9583..a82cae56 100644 --- a/app/pubspec.lock +++ b/app/pubspec.lock @@ -162,34 +162,42 @@ packages: dependency: "direct main" description: name: flutter_local_notifications - sha256: "19ffb0a8bb7407875555e5e98d7343a633bb73707bae6c6a5f37c90014077875" + sha256: "357be7ff996dc272e2037c69c1bdd5d1bd21172219d55f8bd2e11aeea602e6d3" url: "https://pub.dev" source: hosted - version: "19.5.0" + version: "22.3.1" flutter_local_notifications_linux: dependency: transitive description: name: flutter_local_notifications_linux - sha256: e3c277b2daab8e36ac5a6820536668d07e83851aeeb79c446e525a70710770a5 + sha256: "9ca97e63776f29ab1b955725c09999fc2c150523269db150c39274f2a43c5a8b" url: "https://pub.dev" source: hosted - version: "6.0.0" + version: "8.0.1" flutter_local_notifications_platform_interface: dependency: transitive description: name: flutter_local_notifications_platform_interface - sha256: "277d25d960c15674ce78ca97f57d0bae2ee401c844b6ac80fcd972a9c99d09fe" + sha256: "43c3761d916c9bd3d5c7ebbc44d82f4990329840c0c5d62ad5260cc1b5d399bd" url: "https://pub.dev" source: hosted - version: "9.1.0" + version: "12.2.0" + flutter_local_notifications_web: + dependency: transitive + description: + name: flutter_local_notifications_web + sha256: "516afaf97a2d1e67a036c6617321b00d205d72f7a67b6eccf936cd565f985878" + url: "https://pub.dev" + source: hosted + version: "1.0.0" flutter_local_notifications_windows: dependency: transitive description: name: flutter_local_notifications_windows - sha256: "8d658f0d367c48bd420e7cf2d26655e2d1130147bca1eea917e576ca76668aaf" + sha256: "6f43bdd03b171b7a90f22647506fea33e2bb12294b7c7c7a3d690e960a382945" url: "https://pub.dev" source: hosted - version: "1.0.3" + version: "3.1.1" flutter_native_splash: dependency: "direct dev" description: @@ -513,10 +521,10 @@ packages: dependency: transitive description: name: timezone - sha256: dd14a3b83cfd7cb19e7888f1cbc20f258b8d71b54c06f79ac585f14093a287d1 + sha256: "981d1020d6ef8fe1e7b3de5054e5b25579ae7c403d7734adc508ffc47668e9cb" url: "https://pub.dev" source: hosted - version: "0.10.1" + version: "0.11.1" typed_data: dependency: transitive description: @@ -726,5 +734,5 @@ packages: source: hosted version: "3.1.3" sdks: - dart: ">=3.9.0 <4.0.0" - flutter: ">=3.35.0" + dart: ">=3.11.0-0 <4.0.0" + flutter: ">=3.38.1" diff --git a/app/pubspec.yaml b/app/pubspec.yaml index 7b3a8035..42a63316 100644 --- a/app/pubspec.yaml +++ b/app/pubspec.yaml @@ -16,7 +16,7 @@ dependencies: flutter_svg: ^2.3.0 url_launcher: ^6.3.1 shared_preferences: ^2.3.2 - flutter_local_notifications: ^19.5.0 + flutter_local_notifications: ^22.3.1 workmanager: ^0.10.10 shared_preferences_android: any shared_preferences_foundation: any