flutter_local_notifications_provider 0.2.1

  • README.md
  • Example
  • Installing
  • Versions
  • new59

Flutter Local Notifications Provider #

pub package

It adds a functionality in the main package .

Features #

  • Adding FlutterLocalNotificationsPlugin into Widget Tree via InheritedWidget

Example #

After you are done with basic setup, you just need to add this into Widget Tree

Widget build(BuildContext context) {
    return NotificationProvider(
        service: flutterLocalNotificationsPlugin,
        child: MaterialApp(
            title: 'Title',
            theme: new ThemeData(
                primarySwatch: Colors.blue,
            home: widget.home),

NotificationProvider needs plugins's reference.

You can access it using NotificationProvider.of(context);, for example:

        child: RaisedButton(
          onPressed: () async {
            await _showNotification(context);
          child: Text('Test with notification'),

  Future _showNotification(BuildContext context) async {
    var plugin = NotificationProvider.of(context);
    var androidPlatformChannelSpecifics = AndroidNotificationDetails(
        'your channel id', 'your channel name', 'your channel description',
        importance: Importance.Max, priority: Priority.High);
    var iOSPlatformChannelSpecifics = IOSNotificationDetails();
    var platformChannelSpecifics = NotificationDetails(
        androidPlatformChannelSpecifics, iOSPlatformChannelSpecifics);
    await plugin.show(0, 'Title', 'Description',


  • First release


  • Improved documentation


example #

A new Flutter project.

Getting Started #

This project is a starting point for a Flutter application.

A few resources to get you started if this is your first Flutter project:

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

Use this package as a library

1. Depend on it

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

  flutter_local_notifications_provider: ^0.2.1

2. Install it

You can install packages from the command line:

with Flutter:

$ flutter packages get

Alternatively, your editor might support flutter packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:flutter_local_notifications_provider/flutter_local_notifications_provider.dart';
Version Uploaded Documentation Archive
0.2.1 Apr 8, 2019 Go to the documentation of flutter_local_notifications_provider 0.2.1 Download flutter_local_notifications_provider 0.2.1 archive
0.2.0 Apr 8, 2019 Go to the documentation of flutter_local_notifications_provider 0.2.0 Download flutter_local_notifications_provider 0.2.0 archive
0.1.0 Apr 8, 2019 Go to the documentation of flutter_local_notifications_provider 0.1.0 Download flutter_local_notifications_provider 0.1.0 archive
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Apr 16, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.2.0
  • pana: 0.12.14
  • Flutter: 1.4.7


Detected platforms: Flutter

References Flutter, and has no conflicting libraries.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
flutter 0.0.0
flutter_local_notifications ^0.6.0 0.6.1
Transitive dependencies
collection 1.14.11
meta 1.1.6 1.1.7
platform 2.2.0
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies