Reputation: 101
I have an app for schedul event I want to get the time of the selected and event and allow the user to be notified at this specific time or before some time. I have a data base with many events, the user choose the event so he can be notified before the start.
Text(
DateTimeFormat.format(sh.premier,
format: 'D, M j, H:i'),
style: TextStyle(
color: Colors.white,
backgroundColor:
Colors.black54),
),
Upvotes: 1
Views: 5831
Reputation: 2007
These can be done in two ways, you can use Flutter Local Notification, this can help you to schedule notification daily,at a specific time, weekly. Link to these and ref is:
Plugin (Flutter local notifications)
Another preferred way is to use push notifications using Firebase this is by far mostly used to control notifications as it provides a custom control for particular users too!
Upvotes: 4