From 8436eba47ee1336571a2c4854b81b3aa217743e8 Mon Sep 17 00:00:00 2001 From: Delicia Fernandes Date: Sat, 12 Dec 2020 11:38:12 +0530 Subject: [PATCH] Location Functionality Done --- lib/widgets/bottom_reminder_modal_sheet.dart | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/lib/widgets/bottom_reminder_modal_sheet.dart b/lib/widgets/bottom_reminder_modal_sheet.dart index 9827b3d..b851a7d 100644 --- a/lib/widgets/bottom_reminder_modal_sheet.dart +++ b/lib/widgets/bottom_reminder_modal_sheet.dart @@ -108,7 +108,16 @@ class _BottomReminderSheetState extends State { platformChannelSpecifics); } - Future scheduleNotificationBasedOnLocation() async {} + Future 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) {