system_notifications 0.0.1-dev.3 copy "system_notifications: ^0.0.1-dev.3" to clipboard
system_notifications: ^0.0.1-dev.3 copied to clipboard

discontinued

WIP - A Flutter System Notification Manager for both iOS and Android

example/lib/main.dart

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

void main() => runApp(MyApp());

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: Center(
          child: RaisedButton(
            child: Text('Demo Notification'),
            onPressed: _makeNotification,
          ),
        ),
      ),
    );
  }

  void _makeNotification() async {
    await SystemNotifications.makeNotification(id: 1, title: "Example Title", content: "Example Content", dismissible: true);
  }
}
0
likes
40
pub points
0%
popularity

Publisher

verified publisherlemartret.com

WIP - A Flutter System Notification Manager for both iOS and Android

Repository (GitHub)
View/report issues

License

LGPL-3.0 (LICENSE)

Dependencies

flutter

More

Packages that depend on system_notifications