diff --git a/flutter_local_notifications/CHANGELOG.md b/flutter_local_notifications/CHANGELOG.md index 3c3153982..5ace9978b 100644 --- a/flutter_local_notifications/CHANGELOG.md +++ b/flutter_local_notifications/CHANGELOG.md @@ -1,5 +1,9 @@ +# [1.1.6] +* [iOS] Added ability to set badge number. Thanks to PR from [FelixYew](https://github.com/FelixYew) +* Fixed a spelling mistake in the 1.1.5+1 changelog entry + # [1.1.5+1] -* No function changes. Fixed a reported formatting issue. +* No functional changes. Fixed a reported formatting issue. * Mention removal of named constructor argument in 1.1.0 changelog entry * Add API docs to `FlutterLocalNotificationsPlugin.private()` on how it could be used for testing * Update notes on testing to mention that the `FlutterLocalNotificationsPlugin.private()` named constructor may be of use diff --git a/flutter_local_notifications/example/lib/main.dart b/flutter_local_notifications/example/lib/main.dart index e19bf79e8..09952b38c 100644 --- a/flutter_local_notifications/example/lib/main.dart +++ b/flutter_local_notifications/example/lib/main.dart @@ -381,7 +381,7 @@ class _HomePageState extends State { ledOnMs: 1000, ledOffMs: 500); var iOSPlatformChannelSpecifics = - IOSNotificationDetails(sound: "slow_spring_board.aiff"); + IOSNotificationDetails(sound: 'slow_spring_board.aiff'); var platformChannelSpecifics = NotificationDetails( androidPlatformChannelSpecifics, iOSPlatformChannelSpecifics); await flutterLocalNotificationsPlugin.schedule( @@ -841,11 +841,8 @@ class _HomePageState extends State { Future _showNotificationWithIconBadge() async { var androidPlatformChannelSpecifics = AndroidNotificationDetails( - 'icon badge channel', - 'icon badge name', - 'icon badge description'); - var iOSPlatformChannelSpecifics = IOSNotificationDetails( - badgeNumber: 1); + 'icon badge channel', 'icon badge name', 'icon badge description'); + var iOSPlatformChannelSpecifics = IOSNotificationDetails(badgeNumber: 1); var platformChannelSpecifics = NotificationDetails( androidPlatformChannelSpecifics, iOSPlatformChannelSpecifics); await flutterLocalNotificationsPlugin.show( diff --git a/flutter_local_notifications/lib/src/platform_specifics/ios/notification_details.dart b/flutter_local_notifications/lib/src/platform_specifics/ios/notification_details.dart index d6b2d1e9d..90234da71 100644 --- a/flutter_local_notifications/lib/src/platform_specifics/ios/notification_details.dart +++ b/flutter_local_notifications/lib/src/platform_specifics/ios/notification_details.dart @@ -18,7 +18,11 @@ class IOSNotificationDetails { final int badgeNumber; IOSNotificationDetails( - {this.presentAlert, this.presentBadge, this.presentSound, this.sound, this.badgeNumber}); + {this.presentAlert, + this.presentBadge, + this.presentSound, + this.sound, + this.badgeNumber}); Map toMap() { return { diff --git a/flutter_local_notifications/pubspec.yaml b/flutter_local_notifications/pubspec.yaml index ebced1494..3b3097b11 100644 --- a/flutter_local_notifications/pubspec.yaml +++ b/flutter_local_notifications/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_local_notifications description: A cross platform plugin for displaying and scheduling local notifications for Flutter applications with the ability to customise for each platform. -version: 1.1.5+1 +version: 1.1.6 homepage: https://github.com/MaikuB/flutter_local_notifications/tree/master/flutter_local_notifications dependencies: