Skip to content

alan-knight/web_notifications.dart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

notification

A package that implements the Notification API. Somewhat of an experiment in making new/experimental APIs available as packages, rather than having everything in dart:html.

Usage

A simple usage example:

import 'dart:html' hide Notification;
import 'package:notification/notification.dart';

main() async {
  if (!Notification.supported) return;
  await Notification.requestPermission();
  new Notification("Hello world", body: "Have a nice day!");
}

Features and bugs

Please file feature requests and bugs at the issue tracker.

About

An implementation of the Notification API using JS-Interop

Resources

License

Stars

Watchers

Forks

Packages

No packages published