chore: bump dart sdk to 3.8 (#20355)

* chore: bump dart sdk to 3.8

* chore: make build

* make pigeon

* chore: format files

---------

Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com>
This commit is contained in:
shenlong 2025-07-29 00:34:03 +05:30 committed by GitHub
parent 9b3718120b
commit e52b9d15b5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
643 changed files with 32561 additions and 35292 deletions

View file

@ -6,10 +6,7 @@ import 'package:immich_mobile/providers/notification_permission.provider.dart';
import 'package:permission_handler/permission_handler.dart';
final localNotificationService = Provider(
(ref) => LocalNotificationService(
ref.watch(notificationPermissionProvider),
ref,
),
(ref) => LocalNotificationService(ref.watch(notificationPermissionProvider), ref),
);
class LocalNotificationService {
@ -46,10 +43,7 @@ class LocalNotificationService {
AndroidNotificationDetails androidNotificationDetails,
DarwinNotificationDetails iosNotificationDetails,
) async {
final notificationDetails = NotificationDetails(
android: androidNotificationDetails,
iOS: iosNotificationDetails,
);
final notificationDetails = NotificationDetails(android: androidNotificationDetails, iOS: iosNotificationDetails);
if (_permissionStatus == PermissionStatus.granted) {
await _localNotificationPlugin.show(id, title, body, notificationDetails);
@ -95,20 +89,12 @@ class LocalNotificationService {
ongoing: true,
actions: (showActions ?? false)
? <AndroidNotificationAction>[
const AndroidNotificationAction(
cancelUploadActionID,
'Cancel',
showsUserInterface: true,
),
const AndroidNotificationAction(cancelUploadActionID, 'Cancel', showsUserInterface: true),
]
: null,
)
// Non-progress notification
: AndroidNotificationDetails(
androidChannelID,
androidChannelName,
playSound: false,
);
: AndroidNotificationDetails(androidChannelID, androidChannelName, playSound: false);
final iosNotificationDetails = DarwinNotificationDetails(
presentBadge: true,
@ -116,18 +102,10 @@ class LocalNotificationService {
presentBanner: presentBanner,
);
return _showOrUpdateNotification(
notificationlId,
title,
body,
androidNotificationDetails,
iosNotificationDetails,
);
return _showOrUpdateNotification(notificationlId, title, body, androidNotificationDetails, iosNotificationDetails);
}
void _onDidReceiveForegroundNotificationResponse(
NotificationResponse notificationResponse,
) {
void _onDidReceiveForegroundNotificationResponse(NotificationResponse notificationResponse) {
// Handle notification actions
switch (notificationResponse.actionId) {
case cancelUploadActionID: