Skip to content

Commit

Permalink
Fix outdated examples in README.md (#2083)
Browse files Browse the repository at this point in the history
  • Loading branch information
TinhHuynh authored Sep 4, 2023
1 parent 02e3441 commit 4d8aa14
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions flutter_local_notifications/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ flutterLocalNotificationsPlugin.initialize(initializationSettings,
...
void onDidReceiveLocalNotification(
int id, String title, String body, String payload) async {
int id, String title?, String? body, String? payload) async {
// display a dialog with the notification details, tap ok to go to another page
showDialog(
context: context,
Expand Down Expand Up @@ -455,15 +455,15 @@ final DarwinInitializationSettings initializationSettingsDarwin = DarwinInitiali
const DarwinNotificationCategory(
'demoCategory',
<DarwinNotificationAction>[
DarwinNotificationAction('id_1', 'Action 1'),
DarwinNotificationAction(
DarwinNotificationAction.plain('id_1', 'Action 1'),
DarwinNotificationAction.plain(
'id_2',
'Action 2',
options: <DarwinNotificationActionOption>{
DarwinNotificationActionOption.destructive,
},
),
DarwinNotificationAction(
DarwinNotificationAction.plain(
'id_3',
'Action 3',
options: <DarwinNotificationActionOption>{
Expand Down

0 comments on commit 4d8aa14

Please sign in to comment.