This plugin allows Flutter apps to operate with the default clock application when the platform
is Android. Provides a lightweight wrapper around clock app intents. It uses Android intents to communicate with the default clock app.
Currently supported features
Create new Alarms
Create new Timers
Open default Clock app showing Alarms
Open default Clock app showing Timers
Usage
Create an Alarm
Create a new alarm. Function arguments: 'hour' specifies alarm hour 'minutes' specifies alarm minutes 'title' specifies alarm title - optional 'skipUi' specifies whether clock app should open or not - optional
// Creates an alarm at 23:59FlutterAlarmClock.createAlarm(hour: 23, minutes: 59);
Create a Timer
Create a new timer. Function arguments: 'length' specifies timer length in seconds 'title' specifies timer title - optional 'skipUi' specifies whether clock app should open or not - optional
// Creates a timer for 42 secondsFlutterAlarmClock.createTimer(length: 42);
Show Alarms
Opens default clock app showing alarms.
FlutterAlarmClock.showAlarms();
Show Timers
Opens default clock app showing timers.
FlutterAlarmClock.showTimers();
Feel free to add support for additional functionality.
Note that a similar method does not currently exist for iOS.