Skip to content

Commit

Permalink
Fix: typo in README initialize example
Browse files Browse the repository at this point in the history
  • Loading branch information
S0NN1 committed Jan 4, 2022
1 parent d6db998 commit 13d3793
Showing 1 changed file with 17 additions and 19 deletions.
36 changes: 17 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,26 +146,24 @@ import 'package:awesome_notifications/awesome_notifications.dart';

```dart
AwesomeNotifications().initialize(
// set the icon to null if you want to use the default app icon
'resource:https://drawable/res_app_icon',
[
NotificationChannel(
channelGroupKey: 'basic_channel_group',
channelKey: 'basic_channel',
channelName: 'Basic notifications',
channelDescription: 'Notification channel for basic tests',
defaultColor: Color(0xFF9D50DD),
ledColor: Colors.white
),
],
// Channel groups are only visual and are not required
channelGroups: [
NotificationChannelGroup(
// set the icon to null if you want to use the default app icon
'resource:https://drawable/res_app_icon',
[
NotificationChannel(
channelGroupKey: 'basic_channel_group',
channelKey: 'basic_channel',
channelName: 'Basic notifications',
channelDescription: 'Notification channel for basic tests',
defaultColor: Color(0xFF9D50DD),
ledColor: Colors.white)
],
// Channel groups are only visual and are not required
channelGroups: [
NotificationChannelGroup(
channelGroupkey: 'basic_channel_group',
channelGroupName: 'Basic group'
)
],
debug: true
channelGroupName: 'Basic group')
],
debug: true
);
```

Expand Down

0 comments on commit 13d3793

Please sign in to comment.