Skip to content

Commit

Permalink
notes: Improvements to notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
HrX03 committed Feb 24, 2020
1 parent 3037af2 commit 4bb07e1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
10 changes: 6 additions & 4 deletions lib/routes/modify_notes_route.dart
Original file line number Diff line number Diff line change
Expand Up @@ -536,14 +536,15 @@ class _ModifyNotesState extends State<ModifyNotesRoute>
NotificationDetails(
AndroidNotificationDetails(
'0',
'note_pinned_notifications',
'idk',
'Pinned notes',
'This channel contains the notes that you pin',
priority:
Priority.High,
playSound: true,
importance:
Importance.High,
ongoing: true,
color: appInfo.mainColor,
),
IOSNotificationDetails()),
payload: noteId.toString());
Expand Down Expand Up @@ -1043,11 +1044,12 @@ class _ModifyNotesState extends State<ModifyNotesRoute>
NotificationDetails(
AndroidNotificationDetails(
'1',
'note_reminders_notifications',
'Reminders channel',
'Reminders',
'This channel contains remainders that you set',
priority: Priority.High,
playSound: true,
importance: Importance.High,
color: appInfo.mainColor,
),
IOSNotificationDetails()),
payload: noteId.toString() +
Expand Down
3 changes: 2 additions & 1 deletion lib/routes/notes_main_page_route.dart
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class _NotesMainPageState extends State<NotesMainPageRoute>
FlutterLocalNotificationsPlugin();

AndroidInitializationSettings initializationSettingsAndroid =
AndroidInitializationSettings('@mipmap/ic_launcher_fg');
AndroidInitializationSettings('@drawable/notes_icon');
IOSInitializationSettings initializationSettingsIOS =
IOSInitializationSettings();
InitializationSettings initializationSettings =
Expand Down Expand Up @@ -1497,6 +1497,7 @@ class _NotesMainPageState extends State<NotesMainPageRoute>
playSound: true,
importance: Importance.High,
ongoing: true,
color: Theme.of(context).accentColor,
),
IOSNotificationDetails()),
payload: selectionList[0].id.toString());
Expand Down

0 comments on commit 4bb07e1

Please sign in to comment.