flutter_alarmkit 0.4.0
flutter_alarmkit: ^0.4.0 copied to clipboard
Flutter plugin for Apple AlarmKit (iOS 26+). Schedule one-shot, countdown, and recurring alarms as Lock Screen and Dynamic Island Live Activities.
0.4.0 #
- Breaking:
pauseAlarm/resumeAlarm/countdownAlarm/cancelAlarm/stopAlarmnow throw onUNSUPPORTED_VERSION(iOS < 26),BAD_ARGS, and unexpected channel errors instead of returningfalse;falseis reserved for an otherwise valid control operation that AlarmKit rejects (typically because the alarm doesn't exist or isn't in a controllable state). Wrap these intry/catchwhere iOS < 26 is possible. - Fix custom alarm sounds not refreshing when the asset content changes, and same-named assets in different folders overwriting each other.
- Fix Swift Package Manager consumers failing to resolve the plugin because its manifest referenced a nonexistent local
FlutterFrameworkpackage. - Fix button/alarm tint colors being off by one step (now rounded, not truncated).
- Require Flutter 3.38.0+ (the setup's
AppDelegatepatch relies onFlutterImplicitEngineDelegate).
0.3.1 #
- Fix
setCountdownAlarmcrashing (AlarmKit precondition trap) whenrepeatDurationInSecondsis0. - Declare the shared
UserDefaults(App Group) access in the privacy manifests (plugin + widget) for App Store Required Reason API compliance.
0.3.0 #
- Breaking:
getAlarms()→Future<List<Alarm>>andalarmUpdates()→Stream<AlarmUpdateEvent>, reporting full state (scheduled/countdown/paused/alerting). - Custom alarm metadata (
AlarmMetadata: SF Symbol icon + subtitle) — rendered in the Live Activity and returned bygetAlarms(). - One-time and daily relative alarms (empty weekdays /
Weekday.everyday);cancelAll(). - Breaking:
getAuthorizationState()→AlarmAuthorizationState(wasint). - Fix Live Activity action buttons clipping their labels (e.g. "Stop" → "St…") — buttons now size to fit their text instead of a fixed width.
- Fix unreadable default button text colors — pause/resume defaulted to green (invisible on the green resume tint) and are now white.
0.2.0 #
- Add Swift Package Manager support alongside CocoaPods.
- The Live Activity Widget Extension no longer requires CocoaPods — it is a standalone WidgetKit target with no plugin dependency.
0.1.0 #
- Add per-alarm Live Activity UI customization via
AlarmUIConfig/AlarmButtonConfig(button text, SF Symbol, colors, and countdown/paused titles). - Add a
dart run flutter_alarmkit:setupCLI (with a--doctorcheck) and aflutter-alarmkit-setupClaude Code skill to automate iOS setup; reworkedInstallationSteps.md. - Expose
countdownAlarm()to restart an existing countdown alarm. - Breaking:
alarmUpdates()is now an instance method (FlutterAlarmkit().alarmUpdates()). - Native & setup hardening: platform-thread replies, graceful iOS < 26 failure, value equality on config classes, and assorted CLI robustness fixes.
0.0.10 #
- Add
getAuthorizationStatemethod.
0.0.9 #
- Add support for custom alarm sound with
soundPathparameter.
0.0.8 #
- Add
alarmUpdatesmethod.
0.0.7 #
- Add
getAlarmsmethod. - Add
countdownAlarmmethod. - Add
pauseAlarmmethod. - Add
resumeAlarmmethod.
0.0.6 #
- Add Live Activity support.
- Add installation guide.
0.0.5 #
- Add
scheduleRecurrentAlarmmethod. - Add
cancelAlarmmethod.
0.0.4 #
- Update README.md.
0.0.3 #
- Add
scheduleCountdownAlarmmethod. - Add
stopAlarmmethod. - Improve example app.
0.0.2 #
- Fix
requestAuthorizationmethod return value.
0.0.1 #
- Add
requestAuthorizationmethod. - Add
scheduleOneShotAlarmmethod.