Skip to content

Commit c4fc261

Browse files
committed
Buat function showPermissionScreenRecordingIssuedNotification didalam notification_helper.dart
1 parent e23a45a commit c4fc261

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

lib/core/util/notification_helper.dart

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,18 @@ class NotificationHelper {
4545
),
4646
);
4747
}
48+
49+
void showPermissionScreenRecordingIssuedNotification() {
50+
localNotification?.show(
51+
DateTime.now().millisecond,
52+
'app_name'.tr(),
53+
'screen_recording_issued'.tr(),
54+
const NotificationDetails(
55+
macOS: DarwinNotificationDetails(
56+
presentAlert: true,
57+
presentSound: true,
58+
),
59+
),
60+
);
61+
}
4862
}

0 commit comments

Comments
 (0)