clear_all_notifications 0.0.1 copy "clear_all_notifications: ^0.0.1" to clipboard
clear_all_notifications: ^0.0.1 copied to clipboard

outdated

A Flutter plugin for clearing all Android and iOS active notifications

example/lib/main.dart

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

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

void main() {
  runApp(MyApp());
}

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

class _MyAppState extends State<MyApp> {

  @override
  void initState() {
    super.initState();
    initClearNotificationsState();
  }

  Future<void> initClearNotificationsState() async {
    ClearAllNotifications.clear();
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Clear all notifications plugin'),
        ),
        body: Center(
          child: Text('Simple plugin to clear all active notifications'),
        ),
      ),
    );
  }
}
13
likes
0
pub points
93%
popularity

Publisher

unverified uploader

A Flutter plugin for clearing all Android and iOS active notifications

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on clear_all_notifications