Skip to content

Commit 2777e71

Browse files
committed
[flutter_local_notifications] Fix test codes by using named parameters for plugin functions (#2609)
[flutter_local_notifications] Fix example codes by using named parameters for plugin functions (#2609)
1 parent 700d384 commit 2777e71

File tree

4 files changed

+205
-180
lines changed

4 files changed

+205
-180
lines changed

flutter_local_notifications/example/lib/main.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2462,10 +2462,10 @@ class _HomePageState extends State<HomePage> {
24622462
NotificationDetails(android: androidNotificationDetails);
24632463

24642464
await flutterLocalNotificationsPlugin.show(
2465-
id++,
2466-
'I ignored dnd',
2467-
'I completely ignored dnd',
2468-
notificationDetails,
2465+
id: id++,
2466+
title: 'I ignored dnd',
2467+
body: 'I completely ignored dnd',
2468+
notificationDetails: notificationDetails,
24692469
);
24702470
}
24712471

0 commit comments

Comments
 (0)