open_noti_settings 0.4.0 copy "open_noti_settings: ^0.4.0" to clipboard
open_noti_settings: ^0.4.0 copied to clipboard

PlatformAndroid

A plugin to open notification settings

example/lib/main.dart

import 'dart:async';

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

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

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

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

  // Platform messages are asynchronous, so we initialize in an async method.
  Future<void> initPlatformState() async {
    await NotificationSetting.open();
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: Center(),
      ),
    );
  }
}
0
likes
130
points
40
downloads

Publisher

unverified uploader

Weekly Downloads

A plugin to open notification settings

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

flutter, flutter_local_notifications

More

Packages that depend on open_noti_settings