pl_notifications 1.0.0+2 copy "pl_notifications: ^1.0.0+2" to clipboard
pl_notifications: ^1.0.0+2 copied to clipboard

A service to display notifications on the screen using overlays.

example/example.dart

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

class Example extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: Text('A PlNotifications test')),
      persistentFooterButtons: <Widget>[
        FlatButton.icon(
          onPressed: () {
            PlNotifications.showSuccess(context, 'title');
          },
          icon: Icon(Icons.check_box, color: Colors.green),
          label: Text('Success Notification'),
        ),
        FlatButton.icon(
          onPressed: () {
            PlNotifications.showError(context, 'title');
          },
          icon: Icon(Icons.error, color: Colors.red),
          label: Text('Error Notification'),
        ),
        FlatButton.icon(
          onPressed: () {
            PlNotifications.showMessage(context, Text('title'));
          },
          icon: Icon(Icons.message),
          label: Text('Regular Notification'),
        ),
      ],
    );
  }
}
2
likes
135
points
14
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A service to display notifications on the screen using overlays.

Homepage
Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter

More

Packages that depend on pl_notifications