Skip to content

Commit

Permalink
Location Functionality Done
Browse files Browse the repository at this point in the history
  • Loading branch information
deliciafernandes committed Dec 12, 2020
1 parent d410bf6 commit 8436eba
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion lib/widgets/bottom_reminder_modal_sheet.dart
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,16 @@ class _BottomReminderSheetState extends State<BottomReminderSheet> {
platformChannelSpecifics);
}

Future<void> scheduleNotificationBasedOnLocation() async {}
Future<void> scheduleNotificationBasedOnLocation() async {
var android = new AndroidNotificationDetails(
'id', 'channel ', 'description',
priority: Priority.high, importance: Importance.max);
var iOS = new IOSNotificationDetails();
var platform = new NotificationDetails(android: android);
await flutterLocalNotificationsPlugin.show(
0, titleTextController.text, descriptionTextController.text, platform,
payload: 'Your Checklst. Reminder!');
}

@override
Widget build(BuildContext context) {
Expand Down

0 comments on commit 8436eba

Please sign in to comment.