Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set alarm in Flutter?

I am working on an alarm app. I want to know that how can I set the alarm in flutter app as in the android we use alarm manager to trigger alarm function. Need for both platform Ios and Android.

like image 628
sagar dhiman Avatar asked Apr 15 '19 05:04

sagar dhiman


People also ask

How do you make a clock in flutter?

In flutter, there are two types of widgets – Stateless and Stateful widget. The stateless widget is used to create static widgets and the stateful widget is used to create dynamic widgets. Since time is a dynamic factor, we need to use the stateful widget to create the analog clock.

What is Alarm Manager?

android.app.AlarmManager. This class provides access to the system alarm services. These allow you to schedule your application to be run at some point in the future.


1 Answers

Follow https://github.com/flutter/flutter/issues/3671 for updates.

So, for now, you can use regular Java and Objective-C code to solve the problem.

like image 157
Mahabub Karim Avatar answered Oct 12 '22 14:10

Mahabub Karim