open_noti_settings 0.0.2+2 copy "open_noti_settings: ^0.0.2+2" to clipboard
open_noti_settings: ^0.0.2+2 copied to clipboard

outdated

A plugin to open notification settings

example/lib/main.dart

import 'dart:async';

import 'package:flutter/material.dart';
import 'package:flutter/services.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
0
points
44
downloads

Publisher

unverified uploader

Weekly Downloads

A plugin to open notification settings

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, flutter_local_notifications

More

Packages that depend on open_noti_settings