open_noti_settings 0.4.0 open_noti_settings: ^0.4.0 copied to clipboard
A plugin to open notification settings
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(),
),
);
}
}