alarmclock 0.0.2

  • Readme
  • Changelog
  • Example
  • Installing
  • 80

alarmclock #

Flutter plugin to make use of the alarm clock intent to setup alarms. Functionality is basically limited to what the ACTION_SET_ALARM intent can do out of the box.

0.0.1 #

  • Basic stuff for setting up an alarm


import 'package:flutter/material.dart';
import 'dart:async';

import 'package:flutter/services.dart';
import 'package:alarmclock/alarmclock.dart';


class MyApp extends StatefulWidget {
  _MyAppState createState() => new _MyAppState();

class _MyAppState extends State<MyApp> {
  String _platformVersion = 'Unknown';

  void initState() {

  Future<void> initPlatformState() async {
    String platformVersion;
    try {
      platformVersion = await Alarmclock.platformVersion;
    } on PlatformException {
      platformVersion = 'Failed to get platform version.';

    // setState to update our non-existent appearance.
    if (!mounted) return;

    setState(() {
      _platformVersion = platformVersion;

  Widget build(BuildContext context) {
    return new MaterialApp(
      home: new Scaffold(
        appBar: new AppBar(
          title: const Text('Plugin example app'),
        body: new Center(

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  alarmclock: ^0.0.2

2. Install it

You can install packages from the command line:

with Flutter:

$ flutter pub get


3. Import it

Now in your Dart code, you can use:

import 'package:alarmclock/alarmclock.dart';
Code health derived from static analysis. [more]
Weighted score of the above. [more]
Learn more about scoring.


  • Dart: 2.5.1
  • pana: 0.12.21
  • Flutter: 1.9.1+hotfix.4


Detected platforms: Flutter

References Flutter, and has no conflicting libraries.

Health issues and suggestions

Document public APIs. (-1 points)


Maintenance suggestions

Package is pre-v0.1 release. (-10 points)


Package is getting outdated. (-7.12 points)

The package was last published 55 weeks ago.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev.68.0 <3.0.0
flutter 0.0.0
Transitive dependencies
collection 1.14.11 1.14.12
meta 1.1.7
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8