Skip to content

Commit

Permalink
[flutter_local_notifications] bump to 1.1.6 and update changelog, cle…
Browse files Browse the repository at this point in the history
…an up use of quotes (#472)

* bump to 1.1.6 and update changelog, clean up use of quotes

* fix formatting in notification_details.dart
  • Loading branch information
MaikuB authored Feb 10, 2020
1 parent 69ecbbd commit d16ab3c
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 9 deletions.
6 changes: 5 additions & 1 deletion flutter_local_notifications/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
9 changes: 3 additions & 6 deletions flutter_local_notifications/example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ class _HomePageState extends State<HomePage> {
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(
Expand Down Expand Up @@ -841,11 +841,8 @@ class _HomePageState extends State<HomePage> {

Future<void> _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(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<String, dynamic> toMap() {
return <String, dynamic>{
Expand Down
2 changes: 1 addition & 1 deletion flutter_local_notifications/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down

0 comments on commit d16ab3c

Please sign in to comment.